Soguru, I'm sorry you had such a rough time. Yes, it feels bad to make mistakes (I know this well). Hurting ourselves doesn't help in the long run, even if it seems to in the short run.
I hope you can find other alternatives to hurting yourself when you make mistakes.