It is much easier to digest a failure if you don’t look at it as the opposite of a specific success, but rather as the necessary step towards some success.
Even when it takes you far away from your goal, even when it is repeated in time, even when it looks like you are just not going to make it, failure is always capable of revealing some truth.
Sometimes it’s harsh – e.g., “this is not for you” -, but it is never definitive – e.g., “nothing is for you”.