What you describe is night-time acid reflux: when you lie down, food and acid flow back from the stomach into the food pipe, causing burps, a sour taste and sometimes vomiting. Lying on the left side helps because the stomach then sits below the food pipe, which fits reflux well. It usually responds well to simple changes and treatment. Because you have had heart surgery, any chest discomfort should still be checked and not assumed to be gas.
Next Steps
1. Finish dinner at least 3 hours before bed and keep it light. 2. Raise the head end of your bed by 6 to 8 inches (blocks under the legs, not extra pillows). 3. Keep sleeping on your left side. 4. Show your medicine list to your doctor and ask whether an acid-reducing medicine suits you, and for how long. 5. As you are over 60 and vomiting at night, an upper GI endoscopy (a camera test of the food pipe and stomach) is advisable; I perform it myself at Apollo Hospitals, Golf Course Road, Gurugram.
Health Tips
Avoid tea, coffee, fried food and smoking in the evening. Go to emergency at once for chest pain, sweating or breathlessness, vomiting blood, black stools, or food getting stuck.