Failing an exam
Failing an exam hurts personally. Especially, if a lot is on the line with the result.
But it should not reflect on you as a person. You are not what you write in an exam, no matter how important that exam is.
Remember, you are an individual with your unique life which comes with a time limit. Just because you flunked an exam does not mean that you lost at life.
Life is a game which you can play your own way. The controls are in your hand. You don’t have to play the way others are playing. It may seem that there is a rule of conformity, but there is not.
Take some rest. You need that. But channel the frustration of flunking the exam somewhere else. It seems easy to say. But it is not. But you will be better off in the end.