One of the causes of headaches is a primary immune deficiency, which can weaken the immune system and make it more vulnerable to infection and cause headaches.
Doctor, over the last few days, I've had a constant headache, and why?