I've had em for going on 40 years now. They finally classified them as cluster headaches. The only thing that I've found that kinda works is Maxalt (rizatriptan) --- they dissolve on/under your tongue. When I feel one coming on, if I can pop a pill then, the effects are lessened.
My wife suffered from migraines and had a script for maxalt. She would be a little woozie after taking it but could function without pain. Her migraines disappeared after a couple years. We could never figure out the trigger or the reason they stopped.
Good luck figuring it out, they can suck!