Not a doctor but I have a theory about everything...
The strengthening up of core muscles is the main thing. But also try stretching. I've been doing it for a year and my daily mild headaches have disappeared. Gradually build up, don't try too hard, touch your toes sort of goal.
And good luck.