When we make a mistake, that immediately becomes the center of our life. Who we are. What we can achieve. How far we can go.
We should instead put the mistake at the same level of our wins and successes. If we manage to give it context, the mistake will look much less threatening. How many times did we do it right? How often are we proud of our work? How much have we achieved so far? And if we are way down into failure mode, a friend or a partner can help us get out and see.
Mistakes are inevitable, the same way as successes are.