A headache that comes with gas and burping, and leaves you disinterested in everything until it passes, is commonly a tension-type headache triggered by an upset stomach, skipped meals, or stress. The two are often linked rather than separate problems.
Next Steps
Try eating on a regular schedule, avoid long gaps without food, and note what you ate or how you slept before each episode. If this keeps recurring often, please see a physician.
Health Tips
See a doctor sooner if the headache is severe, sudden, or comes with vomiting or blurred vision.