I was diagnosed with migraine as a kid when I was 10. The doctor made me undergo a battery of tests including a contrast CT scan that consumed aj entire day, only to confirm at the end of the day that it was migraine. The migraines weren't even that debilitating but my mom was just being extra careful.
After that, I still got headaches at a good frequency and tried all sorts of specialists from orthos to opthalmologists, all of who checked their areas of the body and said I was perfectly normal. The one doc I didn't see was a gastro and this was a mistake.
Eventually I grew older and realised first that my headaches were always preceded by some sinus congestion and milk was a trigger of said congestion. So I switched to lactose free milk and that helped.
Eventually I realised that I was a chronic acid reflux patient, that a lot of small symptoms I had had over the years (a feeling of something stuck in the throat, congestion etc) were basically just the gut throwing up acid, or more accurately LPR/silent reflux. The reflux was the actual trigger of my headache. So my usual medication of Paracetamol, or worse, ibuprofen was actually making it worse in the medium/long term.
I switched my strategies to fixing the gut/acid reflux instead of treating the headache. The max I do nowadays is 325mg of paracetamol if I need to sleep and the pain doesn't let me. Ibuprofen is a nuclear option that I haven't resorted to in years.
The gut issue is still not resolved, I suppose years of damage to the oesophagus takes time to heal, so I'm still prone to reflux but I make do with a bland diet, avoiding triggers like milk and resorting to PPIs for short bursts during an attack. Oh and I also do the bending while swallowing trick that was on HN sometime back, which has helped immensely.
My headaches are mostly a thing of the past. Haven't had a debilitating one in years.