No idea.
The mechanism seems to be a reaction to high blood sugar. Why when how ? Simple preventative hypothesis seems to be limit sugar. And for that matter starch. No fries with that !
I don’t want to pretend that really I understand what’s going on, but I’ve been trying a cyclical ketogenic diet for the last several months - six days a week of low carb and one day of sometimes very high carb. And over that time my insulin response, as measured by Oral Glucose Tolerance Test, has improved significantly. So in my case, at least, intermittent high-carb days has not caused problems.
To provide some context, I was severely obese when I started with all of the accompanying symptoms of metabolic syndrome. I ate strict low-carb for a six months, lost a great deal of weight, and improvement or elimination of my various insulin-related problems (hypertension, GERD, sleep apnea, acanthosis nigricans, etc.) And over that time my OGTT peak dropped from 177 to 131 mg/dL. Then for six months I engaged in a weight training program, into which I incorporated cyclical high-carb days. After which my OGTT peak was down to 114.
I have no idea how many others might be the same, but for me, at least, I now seem to be able to handle significant quantities of carbs, if they are rare enough, and if there is enough time in between them.