When I get a lack of sleep (or especially multiple nights of bad sleep), I often have a splitting headache the next day that makes me unfunctional and worsens until I get more sleep. Other people I’m with have the exact same sleeping routines and never get any headaches, and can still function despite being tired. What’s wrong with me?
Another possibility — are you drinking enough water? I will wake up with a migraine if I’m dehydrated. Unfortunately, as you age and the bladder loses resiliency, it becomes a balance of enough water to not get dehydrated, but not so much that you’re waking up at 2 am to pee.