If your stomach acid production is impaired, you likely have mineral imbalances such as low sodium and/or zinc. Consuming more unrefined sea salt and ionic trace minerals will likely help. This is true even for most people who get heartburn with/after meals but not in between meals and not with those with ulcers. We can’t know for sure without knowing your tissue mineral levels and ratios, which can be done through hair tissue mineral analysis testing.
Further reading - chapter 4: Digestive Dilemmas: Poor Protein Digestion, Sodium Deficiency and Cell Membrane Dysfunction. The Calcium Lie 2, by Robert Thompson MD.