Thanks for writing your query.
After reading your post, it seems that you might be having infection of the gastrointestinal tract and needs medical management.
I would suggest that you should get your stool examined for any infection or parasitic infestation.
I would advise that you should take an antacid
40mg once a day before meals along with a probiotic
You may need an antibiotic like Ciprofloxacin
500mg twice daily along with Metronidazole
400 mg thrice daily.
Eat light meals prepared under hygienic conditions.
Also take care of your hydration.
A clinical examination will be helpful.
I hope this is helpful to you.