Anxiety, fear, panic, stress, etc. can settle anywhere. For some it's the neck, back, arms, legs, digestion, can be the head.
The underlying distress needs to be addressed perhaps with a therapist, some light meds, CBT, exercise, meditation. Some people think dehydration causes headaches. Truth is most of us do not drink enough water. Just some thoughts.