Seek truth
Focus on outcome instead of ego. Put your energy into being right not feeling right.
When the evidence indicates the approach isn't working, change the approach. This is easy with something like math, where answers are black and white, but harder with more subjective things.
It's okay to be wrong - just focus on getting to the truth.