https://www.mdpi.com/2072-6643/11/4/811/htm
"An increasing amount of evidence suggests that migraines are a response to a cerebral energy deficiency or oxidative stress levels that exceed antioxidant capacity. The ketogenic diet (KD), a diet mimicking fasting that leads to the elevation of ketone bodies (KBs), is a therapeutic intervention targeting cerebral metabolism that has recently shown great promise in the prevention of migraines."
Gross, E. C., Klement, R. J., Schoenen, J., D’Agostino, D. P. & Fischer, D. (2019). Potential Protective Mechanisms of Ketone Bodies in Migraine Prevention. Nutrients, 11(4), s. 811.