Try to focus on what you have learned instead of being too hard on yourself. 

Read about celebrating your achievements.

There is a tendency to overthink the ‘what ifs’ when things go wrong. But the fact is that we cannot change the past and have to move forward. This article goes through ways to accept when things go wrong, such as accepting the emotion, accepting the reality, accepting the consequences and remembering to focus on the positives.