It seems that you are a victim of poor impulse control. Poor impulse control can be a long-standing problem in conditions such as Impulse control disorder or Personality Disorder. It can also present as a new onset symptom in conditions such as Depression or other Psychiatric disorders.
There are solutions available for this. First of all, an assessment of the underlying cause has to be made.
Next Steps
Consult a Psychiatrist for further evaluation and management. It is strongly suggested that a person who knows you for long time should accompany you to the Psychiatrist, as some of the personality traits are better known to others around you.