Do not let the emotional state of other people (For example your W) change your emotional state.
Some here say to set a boundary if W is yelling at you (and walk away). That is one choice, and it is perfectly fine to do that, especially if you may react emotionally.
I feel another option is to calmly "handle it", listen/validate. Vets from the past called it "putting on your raincoat" and let the venom fly and roll off you like "water off a ducks back". It takes self control to do this, especially if your "normal" interaction was to argue. This may be a sign of strength to her. Just another option. I would love to here Wayfarer views on this.
"What is best for my kids is best for me" Amor Fati Link to quotes: https://www.divorcebusting.com/forums/ubbthreads.php?ubb=showflat&Number=2879712