Stress causes rebound parasympathetic action at night which increases stomach acidity.
Reducing daily stress, avoiding sympathetic stimulants like coffee in the evening and avoiding heavy foods right before sleeping should help reduce this parasympathetic rebound