Hi there,
What u have described here seems like a problem of impulse control. There are various reasons related to your emotional state that can cause that. This is impossible to advice you without knowing those variables in totality
Next Steps
Consulting a psychiatrist /psychotherapist will help you gain better understanding of your problem and thus its resolution