Indeed. You need to fight the self indulgence and lack of discipline that allows this. It’s become a habit, but habits can be broken. Seek professional mental health help if you don’t know where to begin. Google is your friend, too.
I am not minimising how difficult it is to get out of bad habits, I have had to do it myself. I suffered anger management problems as a young woman (trauma, etc). I overcame it by reading psychology books and a lot of Googling.
The first step was to practice being quiet, silence is golden if you have nothing good to say.
Second was to warn loved ones around me that I was not feeling good I needed to be quiet for a time. This is also wonderful modelling for your children.
Third, practice walking away. Go and sit down somewhere else, go for a walk, or go and lie down if your feelings are very overwhelming that day.
Most importantly, deeply contemplate and appreciate the feelings of others, to acknowledge their feelings are just as important your own, or even more so if they’re going through an especially bad time for example, they don’t need you making it worse.
Learn to truly cherish your loved ones, by eliminating unnecessary and petty damage to them. This is the most basic part of respect.
The crucial turn around point for me was to imagine how others saw me when I was in that mood… did I want to be seen as out of control? Did I want to be seen as immature? Did I want to be seen as a bit savage and barbaric?
And most importantly, did I want others to loose respect for me? Because that is exactly what has happened.
I had to work very hard to discard that reputation, but I’ve successfully done so, you can too if you want it bad enough. And when you do this, do you know what happens? You will then also finally be respecting yourself, by allowing yourself not to become mean and nasty to your nearest and dearest.
You do this because it seems to bring you some short term relief, but you are not noticing the long term consequences to your character, reputation, and the well-being of your family. There are other ways of behaving that work very well and don’t have negative side effects.
It’s a serious problem, approach it as such. Good luck. You can do it!