I have been in such situation previously. All that you mentioned happened to me.
It’s not about what happens but about your reaction to it. In your case, it is clear that you are reacting in a haphazard manner. And there are reasons to such behaviour. Most of it has to do with what you believe about yourself. Your opinion about yourself and things like that.
Next Steps
Sit with yourself and become aware of what you believe about yourself else take the help of s counsellor to achieve the same.
Health Tips
Don’t wait too long before taking action. Waiting is not worth it.