I have come to learn and realized that mistakes don't define me. Self blame only delays my learning process in so many ways and as such, I try to reframe mistakes as lessons instead of failures and such kind of attitudes help me build self-confidence.
I also come to the realization that I can only progress when I shift focus from punishing myself to understanding the situation. Instead of dwelling on what went wrong, I try to take a passionate view of the situation and it opens doors for personal freedom and improvement.