Maika it happens with practice and requires work. You need to reframe it. Always just count down from 5 to 0 and then logically think if your reaction is justified or not, just like B said. It's the amygdala taking control in your brain, the quick thinking - learned behavior. Meditation helps this too. Neuroplasticity eventually corrects it and you'll learn a new habit to counter the previous behavior.
In my thirties, BDd 2017, divorced 2 young kids new relationship