I reiterate: temporary madness.
Give it some space. Take some time away from the situation. Become sane again.
Let the haze of emotion settle so that what’s left is rational action.
Then, in your normal, non-maddened state—respond.
Remember, step 1 to solving any problem is: don’t make things worse than they need to be.
And acting in anger—in madness—almost always trashes step 1.