Any idiom or phrase for "refusing to admit one's mistake or one's own lack of knowledge, abilities or achievements"?

Solution 1:

This is called face-saving.

intended to prevent someone from feeling embarrassed or having to admit that they are wrong

a face-saving compromise/exercise/deal

The European Commission agreed a face-saving compromise to defuse a bitter dispute with Germany over subsidies.

[Cambridge]