To avoid heartburn, first of all, pay attention to the diet on weekdays, avoid eating too fast, and try to eat less or do not eat certain foods, such as tea, coffee, fried food, candy, chili peppers, strong alcohol, etc., but even if the food that can cause your heartburn is not in the scope of the above mentioned, you should also avoid eating this food.
Secondly, don't lie down or bend over in bed right after a meal, and don't start strenuous exercise right away. It's a good idea to take an easy walk 30 minutes after a meal to help with digestion and to reduce the symptoms of heartburn.
You can also use some antacid medications such as calcium carbonate tablets and aluminum hydroxide gel, which can neutralize the acid in the stomach and quickly eliminate the symptoms of heartburn, but if you take these medications for a long period of time, they can cause constipation or diarrhea; if you have frequent and severe heartburn, or if the symptoms are severe and persistent, go for a checkup.
By the way, I wish you a speedy recovery!