How to prevent Disable All Addons button from popping up mid combat?

I’m so mad right now. The Blizzard UI ruined a mythic for me, it wasted almost half an hour of my time.

In the middle of combat maybe 3/4 of the way into a mythic, this pops up on my screen:

“Your addons are experiencing a large number of errors and may be slowing down the game. You can turn on display of Lua errors in the interface options”
DISABLE ALL ADDONS or IGNORE

Well guess what? I was right about to click on a mob when DISABLE ALL ADDONS popped up right under my mouse. Great.
Do you know how easy it is to survive in a mythic when all of your addons that you’ve been using for months suddenly shut off?

All of my addons work just fine. They are not slowing the game down. I don’t care. But shutting off every single addon in the middle of a mythic is horrendous. I couldn’t even just relog and have them all turned back on. I literally had to spend 10 minutes going through all of my addons figuring out which ones I wanted to turn back on.

How do I get rid of this?

Blizzard does not provide game support for addons. Those are made by third parties using the approved sandbox. If they don’t work, Blizzard won’t change the game to fix it.

The only way to resolve it is to remove the addons that cause it.

This will not fix a problem as bad as telling you to disable all addons, but if you are getting lua errors in combat, get an addon like BugGrabber and its companion BugSack to look at them later.