Improve the log message when peer id authentication fails

Split off #26924 (moved).