I think its very natural part of being human. And that it actually takes a bit of training, self examination or realization to get to grip with. What i'm referring to is our ability to hold on to our beliefs or at least some of them, and if people question them or point out flaw in them, that its very easy to see it as a personal attack on you as a person, and therefore one put up their defences.
Which can be expressed in different ways, like personally assaulting the person, just ignore what the other is saying, being upset etc.
But I think that if one can come to grip with ones beliefs not really being all that precious and that these are just temporary beliefs until they are replaced with something better or more informed (Doesn't have anything to do with religious beliefs, but just in general). Then you as a person will also start to actually value new information more and to have your beliefs tested.
To me personally, what made me start to at least try to be aware of this, were when I heard a lecture about "being wrong". And the person talking asked the question to the audience:
"What does it feel like to be wrong?"
And people say, that they felt bad, stupid and all those things.
But what you actually feel, when you are wrong, is that you are right. And to me that reply made a lot of sense.
So personally, Im trying my best to really not hold my beliefs all that sacred to me, I will argue for them being correct, if I think they are. But at the same time also constantly try to question them to see, if they are actually worth holding.
At least, to me that makes it a lot more interesting seeking knowledge and especially working on and trying to improve the method of how I obtain new information, how to do critical thinking, how to be sceptical. So I at least to my self, can say that I tried the best I could to get the most information available before deciding what is most likely to be correct.
So being able to see the value of being wrong, ought to be a blessing rather than something bad, as it basically just mean that you have become smarter