I'm wondering whether there is more than one issue being discussed here. For the last few years I ONLY experienced the problem when I turned my desk fan on or off - the 2nd monitor would go blank for 3-5 seconds (not a "flicker", per se, but several seconds of darkness before turning on again).
Since upgrading to Windows 11, and replacing both monitors and both cables, the problem happens less frequently, but almost always occurs when I plug a small device into a gang socket on my desk. It has occasionally happened while doing nothing in particular - e.g. just two web browsers open, no video or gaming. But that hasn't happened for a few weeks.
So I'm pretty convinced that, in my case at least, power fluctuations are playing some part in this.