As other comments have said, deal with the origin of the pain first, THEN…
If it’s bad enough to take meds but not too bad, then one 500mg paracetamol and 200mg ibuprofen (my go to for pain). The paracetamol will generally be one with some caffeine in it.
If it’s a BAD headache, then 900mg aspirin.
I do have a headache hat which is kept in the fridge.
Last I heard 2035 was already going to be pretty crap, 2050 was unlivable.