I regularly eat right before bed and I don't have this, in fact if I don't do it I wake up really hungry. It's still a bad habit on my part. Maybe something else at work?
Sounds awful. Do you know what causes it? Otherwise this might not be in your control. Worth seeing a holistic therapist to find the root cause and hopefully feel better.