Failure is inevitable for growth

The pain of failure is also a sign that you are on the right path, because at least you are challenging yourself rather than languishing in soft security.
From this perspective failure is never really failure, because it is merely the cost of taking a risk to grow.