Are you taking probiotics or enzymes? Digestive enzymes can be helpful, but they aren't the same thing as probiotics. As for your stomach problem, because it's caused you to eat at odd hours, its probable origin is anxiety. I say that because just having stomach difficulties don't cause a person to change their eating times. But it doesn't really matter what caused it, whether a virus or infection or a good allergy, the thing now is to deal with it. Your diet is probably not suitable for you, and you're probably having difficulty digesting what you're eating. This can be caused by eating food you don't tolerate well -- the most common are wheat and dairy -- and it's caught up to you, or by not chewing thoroughly enough, or just by eating unhealthy food. Some people just have certain foods they don't digest well for no particular reason. You can usually figure this out by experimenting. For symptomatic relief I'd suggest aloe vera juice and/or DGL. You sound like you have some reflux happening, which is why I asked if you ate too soon before going to bed. Digestive enzymes would actually be helpful. Probiotics emphasizing bifidus might be as well, but usually this is when you have a die-off, which is why I asked if you were on antibiotics. Exercise can help keep things moving. Lots of things to try, but doing what you're doing is going to leave you undernourished and not solve the problem. Good luck.
Do you lay down soon after eating? As for probiotics, the one to focus on is bifidus. Did anything stressful happen around the time this all started, and were you on antibiotics about the time this all started?