If you are discouraged over some mistake or event, don’t despair. Even those who are most proficient in their trade will falter at some point. For example, Tiger Woods scored a 10 at a PAR-3 hole at the US Masters Golf tournament.
The issue is not how badly you faired or how hard you fell. The important thing is how you recover from it. Focus on how you get up and not how you fell.