I used to get them often and they were strongly correlated with a lack of dleep
And dehydration. Now if I feel one coming I take a couple of ibuprofen and pound water and it helps keep the headache and vomiting away, but I don’t feel completely better until I’ve had a really good sleep.