Have you tried fasting or other things to help try to narrow down the cause of your headaches? Have you had extensive blood panels (a full panel, not a simple one your doctor will give you... I think you have to order the FULL full ones online). A lot of my business partners and people I work with do that biohacking stuff where they try to find out every way to augment their body. They do weird stuff like fly to mexico to get stem cell injections, etc. Ive never been into that, I just take a multivitamin, but it's possible there is something you're deficient in that could be found out? I'd be almost certain there is SOME combination of SOME THING on this earth that would fix whatever it is, even if it's not well medically documented.
I know a number of people with severe neurotic issues, like TRUE neurotic issues, and fasting is really the only common denominator of what has helped them more than any medicine. People have thought fasting was fugazi woo-woo for the longest time but I believe medical science is now catching up as to the benefit (harvard studies, etc). Ive fruit fasted for 45 days once and healed my gall bladder after the doctor couldnt explain what was wrong with it and their only option was to cut it out.