Bad gas and stomach pain at the same time each night- no matter what I eat or whether I eat. Any ideas?

Conditioning versus? Consider gastroparesis=a slow-emptying stomach that is most symptomatic at night-time after the stomach fills from meals all day. More likely, brainstem reflexes induced by eating are often exaggerated in irritable bowel syndrome resulting in altered perception of gut distension, painful spasm, and modified transit of food. This response can be "conditioned" to the same time each day as described.