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.
Some of the ranches are big enough they do have helicopters. It’s not impossible.