That has lead to me avoiding all medicines every time I get a headache (yes, I understand correlation is not causation).
My primary route to solve any headache is hydration. Adding electrolytes is also important because too much water without them can also give you a headache.
My experience has also lead me to focus on consuming the healthiest diet I can find (currently intermittent fasting + keto with intermittent-vegan weeks, mostly organic, with all nutrients from food sources).
On the other hand, my mother, who could convince the majority she's healthy based on her weight and latest diet buzzwords, has had migraines for the past 30 years, maybe longer — even landing her in the hospital on many occasions.
A migraine is your body telling you something is wrong with your most valuable asset.
Are you sure you want to sweep this problem under the rug?
There is a documentary on Amazon called "Fat". It illustrates how many children with epilepsy were harmed by the combination of 1. lack of understanding food and 2. pharmaceuticals with side effects that render them permanently disabled.
Good luck with your search for health and wellbeing.