Failure is learning
We do not really ever fail – it is just learning.
If you did not make mistakes or have situations that put you out of your comfort zone you would never be able to adapt to change.
Embrace the times of learning, and know that once the moment passes and you are able to reflect, that the outcome is worth the discomfort.