The way you are describing your illness , it looks like you are having Gastric outlet obstruction.
Yes it can be beacuse of Acidity..
Acidity causes ulcer formation in last part of stomach, thts pylorus .
Ulcer heal making the segment narrow .
So it causes retention of liquid in stomach.
Next Steps
USG
Endoscpoy
Health Tips
Eat small meals in the night.
After meal there should be a gap of 4 hours before you sleep.
so always have early dinner.