If you are feeling bad that you:
- Failed at your job.
- Quit a failing business.
- Could not clear an exam.
You should read this quote by Yuval Noah Harari about the Ancient Romans:
"The ancient Romans were used to being defeated. They could lose battles after battles, but still win the war. An empire that can't sustain a blow and remain standing, is not really an empire".
****
Now, this is not an excuse for you to fail at everything.
Thoughtful failure and going down fighting is very different from being lazy and not acting at all.