hi there, your problem could be arising due to peptic ulcer disease
or due to problem in digestion. Usually the acidity caused due to gastritis
or gastric ulcer manifests itself with headache and vomitting and relief of acidity will relieve you of these problems. I would suggest that you make a small change in your lifestyle and also take antacid
lid nexpro or pantop regularly three times a day for 15 days. you could take small fat restricted and less spicy food at frequent intervals and try not to be empty stomach for a long time at a stretch. If you smoke or drink then you need to cut down on those. Also get an ultrasound
abdomen done to rule out any liver or gall bladder disease
. Hope this helps, take care.