It could be the impact of running that causes the headaches. I used to get headaches after running (when I still ran; don’t anymore); and I get headaches if I ride on rough washboarded gravel; but tend not to get headaches on the road, or on MTB rides where suspension absorbs the hits.
Maybe play around with running shoes/running of softer surfaces, and see if there’s any change?