Failure hurts in proportion to the amount of ego involved. (granted you aren’t failing at saving someone’s life in a crisis situation or the like)
It doesn’t help to act big and tough or talk about how failure is essential to success either. Smiling also does not help. I mean those things may keep you from breaking down on the spot, but in the long run the issue of ego HAS to be addressed.