You might vomit foam when you have a stomach bug, eat too many fatty or acidic foods, drink too much alcohol, or take certain types of medication. But it can also be a symptom of health conditions ...