If this is going on for one year we need to rule out H Pylori infection and severe acidity. Reduce your stress levels. Eat the food that does not cause heart burn. Have early dinner - atleast 2-3 hours before going to bed.
Gas bloat could also be due to some food intolerance
Next Steps
You need to undergo an endoscopy. This will help diagnose the cause of heartburn
Health Tips
Maintain a food dairy and see what you have eaten each time you have severe symptoms