About every evening around the same time, I have discomfort in my stomach, sometimes in the top part. I also get gurgling in my stomach. Like phlegm, that causes me to cough. It sometimes gags me, and I spit up foam. This mostly happens in bed, but not when I m on my left side.