Could it be that you have H pylori ? A stomach virus, urine and stool test will tell. Also Celiac Disease, which is a gluten sensitivty. Stop eating anything that has wheat, rye or barley in it. Go on the gluten free diet you will feel 100% better. Alot of people have this disease or sensitivity and don’t know it. The doctors miss diagniose it. You will get acid reflux, constipation, then diareah, stomach cramps and gas pains, bloating of your stomach. If left not dealt with properly it can lead to stomach cancer or esophegal cancer. Also the problems of the colen with the constant diareah and constipation back and forth.
This disease is something you have since birth. It stops your small intestine from absorbing vitamines and minerals from the foods you eat. So therefore your body over the years, becomes run down and susepatible to many negative possibilites. This is a heredirtary disease, so some one or maybe everyone in your imediate family has it to. It does effect everyone differently because therefore we all have different boddies.
The diet is easy, don’t eat any breads or cereals unless they are labeled gluten free. No processed foods, just fresh fruits and vegetables, meats and dairy. There is a very large choice in the markets now for gluten free items, such as postas, breads, cookies, cakes, etc. I hope your problem is as easy as this fix.