This in itself sounds a lot like the "mirroring" you reference, no?
Have recently had something of a revelation about this type of thing... .
Long story, but in a brief nutshell, my son was basically stolen from me 25 years ago when he was 3, by my lawyer, who gave him (son) to some friends of his (lawyers friends) who were unable to adopt because the woman is a diagnosed BPD and her husband was convicted of murdering his own brother.
Now the more pertinent part--my son (who will be 28 in a couple of months) has come to stay with me for a while, making a Herculean effort to change his life (he had some doozy "training" with this couple of how to be a useless and dangerous member of society). Obviously, this is a very emotionally charged situation for both of us, but it's working out pretty well.
Last week, we had our first blow up. There was lots of yelling and posturing. Fortunately, very little venom that can't be taken back. Then we sat down and worked it out, resolving the issues and discussing the emotions actually behind them. Then we engaged in some shared soul searching. This of course took hours.
I felt "bad" that this happened. I thought I'm not as far along in my own journey of self improvement as I thought I was or this wouldn't have happened. I should know better than this--what kind of an example am I to him, when I keep preaching communication skills and then I myself use a door slam to communicate? I was distressed about the "wasted time" involved, as it was a busy day where things needed to get done and instead the day was "wasted" on a blow up that should never have happened in the first place.
The good news is, it took less than a week to realize something important. Yes, I realize my situation/scenario is quite different than yours, but I think the realization still applies.
The goal is not to NEVER MAKE A MISTAKE. The goal is to immediately own up to the mistakes and do what needs to be done to resolve them appropriately.
My own mother is a Sadistic PD (no longer in the DSM, unfortunately). I haven't had contact with her for over 22 years now. That has certainly removed me from her scorched earth reality, but has not taught me to deal with the world at large any differently. What has helped immensely with that (dealing with the world at large differently) is reading about the Karpman triangle and how to pole vault myself off it.
So it's layers of an onion--I DID do the right thing in the initial problem. I immediately addressed and resolved the communication breakdown. THEN (slower, but need more practice) I recognized the wallowing on the Karpman triangle ("I'm a victim--a victim of son and his yelling, victim of own auto-pilot behaviors, etc" and realized I'm not really going to be able to avoid uncomfortable situations--I'm just going to learn to deal with them differently.
I'm working on changing my reaction when I am triggered (including just owning up to it), rather than blame someone else for triggering me and then banishing them.
Sometimes we fall back into the same old hole because we haven't resolved our part yet. But maybe falling into the hole isn't the problem, but how we crawl back out is. I'm actually a little grateful this time around about falling into the same hole, because it gave me opportunity to see how differently I crawled back out was. And even to notice that many times I have crawled back out in a pretty good way but because of my victim/rescuer perspective, never gave myself credit for it.
Hey, you crawled back out of the hole--that's what it's all about, right?