from your symptoms it looks like you are having either migraine or or positional headache or vertigo or orthostatic hypotension.
try :
-analgesics (after visiting a doctor)
-increasing your salt and water intake
-wearing compression socks
-raising the top half of your bed
Next Steps
for Migrane - Avoid eating foods with nitrates such as hot dogs, deli meats, bacon, and sausage - Avoid food such as chocolate, cheese, blue, feta, cheddar, Parmesan, Swiss cheese, alcohol especially red wine, foods that contain monosodium glutamate (MSG), a flavor enhancer foods that are very cold such as ice cream or iced drinks processed foods, pickled foods, beans, dried fruits, cultured dairy products such as buttermilk, sour cream, and yogurt - Inhaling lavender essential oil may ease migraine pain. - Apply a menthol solution to the forehead and temples has shown to give relief. - Having food items such as ginger, almonds, sesame seeds, sunflower seeds, Brazil nuts, cashews, peanut butter, oatmeal, eggs and milk - Destress with practices such as yoga, meditation - Sleep properly with a minimum of 8 hours of sleep at night. - When attacks of migraine come sitting in a dark silent room has shown to give relief. If the condition persists or worsens visit the nearest ER.
Health Tips
i would suggest you visit en ent doctor for further help.