Possibly you are having
migraine headaches.
Migraine headache are triggered by many things- sunlight exposure, loud noise, lack of proper sleep, skipping meals on time, fasting, and specific smell/food.
Alcohol, chocolate, and caffeine, Chocolate, Sulfites used as preservatives in red wine, Coffee, Cheese,
Monosodium glutamate (MSG) which is found in soy sauce and as a food additive in many other foods, Ice Cream,
also Bananas if you are sensitive to
tyramine are the usual food triger for migraine headaches.
The sensitivity to a particular smell, food is variable for each individual.
If you feel some food as triggering the headache, You should avoid that particular food.