When you know the problem then it is easy to remove it.
What you do start praying 5 times regularly.
Allah said the people who control their temper are liked by Allah.
When you feel that anger is coming to attack you,
Drink a glass of water.
Change your posture if standing, sit down. If sitting lay down & vice versa.
Inshallah you will control it.