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.