Some things that may help, whether you are at the point of stomach ulcers or you have bad reflux that happens while sleeping.
However it works in your life, but some suggestions:
1. Smaller meals/serving sizes. This reduces the amount of acid that is produced for digestive purposes.
2. 1 or 2 meals a day. This reduces the frequency for acid production. Reduces inflammatory processes. Gives your gut a rest.
3. Minimize snacking. This reduces the frequency for acid production.
4. Drink only water between meals. Helps empty the stomach and reduces acid production.
5. Minimize fruit juices and other sugary drinks. Sugars in the form of liquids and solids will amplify acid production.
6. Minimize eating 3-4 hours before sleeping. This allows time for your stomach to empty and settle before lying down. Many people will have a situation where the gut slows/pauses the movement of digested food and waste though the intestines in the late evening and while sleeping. If the gut is full and acid is being produced, and it's not moving into the intestinal tract, the higher the risk for acid reflux when lying down. If you are in this situation, you can lie onto your left side which positions the esophagus in a high position, as opposed to lying on your right side, which positions your esophagus in a low/dependent position where stomach contents can reflux.
7. Avoid foods that are more "triggering". For me, it's evening carbs like breads, crackers, popcorn, etc.