Water before bed
Drinking water before bed shouldn't cause gas.
But it can cause reflux
during the night which can be uncomfortable - gravity brings the water mixed w/ stomach acid up into the throat. Best way to test this out is to stop drinking fluids 2-3 hours before bed and see if it improves. Good luck!