I would suggest getting a medical exam, to get to the bottom of this. Headaches can be caused by many things. In my case, I’ve had severe headaches caused from my eyes, sinus and allergies, a degenerative neck disease and other things. But never were they related to cannabis, as far as I know...