you should do some exercise or meditation . you can also do breathing exercise as it helps to relax out mind and energy . most importantly take your time to know what triggers you that makes you act like this because it will help you to be aware if any situation occurs which will lead you to get angry .
Firstly reply when your calm then identify what’s your trigger and start avoiding such situations as that will help initially
You can start with acknowledging your triggers, then taking 5 secs gap before speaking. Try to frame the sentence in your mind first then say it.
You can get involved in some physical activity to regulate your emotions.