HOW - how do I do it? How can I change how I react when she attacks me so often? Several times a day she's mad about something. I'm really trying...but I'm failing often - mostly...
You are halfway there - you know you have to change your reaction to her.
Rehearsing is a good way to learn it. It's like doing a fire drill. Learn the skill in time of calm. Imprint it. Then you will have it ready when the emotions fly.
If you look at the who sequence of events, how would you do this differently if you had a do-over. This is a great way to learn.