Can't sleep because of (supermild) gastritis, but insomnia is making gastritis worse. Any advice? Does not sleeping at all worsen your gastritis?

I have another flare up. Not much heartburn, zero acid reflux, just nausea and a "sore" stomach after once again... ONCE AGAIN thinking I'm good and eating some chocolate. IDK how I'm so damn stupid. But yeah.

Last time I took doxylamine for three days, it's antihistamine and somehow calms my tummy very well. But that's been a week ago for four days and I probably still have a tolerance against it. I'm a bit worried of rebound insomnia if I take that already again but I heard that vomex dragees/diphenhydramine have the risk of keeping one awake due to some coffeine-like components? Don't wanna find out at night. Gaviscon and such seems less for nausea and more for heartburn.

Not sure what to do. I'd just see how it goes and if I don't sleep fuck all this night take doxylamine the next night, but I'm worried that might fuck my stomach up even more. I'd appreciate any advice. I drink fennel tea during the day and peppermint tea an hour before bed but IDK. Is it possible to sleep with a stomachache?