Eat foods in a way that can ignite ketosis periodically throughout the month and treat carbs as it's something your allergic to. I have personally (finally after 7 years) started regulating my cluster headaches which is an inflammation problem.
I think you're right. I suspect pre-diabetes causes lots of these types of symptoms especially when you're not young anymore, and basically the cure is manage carbs (and exercise)