Welcome back to icliniq.com.
I have reviewed your case history and attached pictures (attachment removed for patient identity protection).
1) These are two different conditions, do not confuse them, initial upper abdominal pain that resolved with acid suppression medicine was likely gastritis, and I agreed you can take medicine for 30 to 60 days.
2) This time, abdominal cramps, diarrhea, and associated gastrointestinal bleeding seem to be a gut infections like small or large bowel infections commonly known as enterocolitis. You might have a history of eating out or eating unusual meals. This does not relate to acid suppression medicine use or coming from the stomach as such.
3) I do not think that this is hemorrhoidal bleeding. Hemorrhoidal bleeding is fresh red and most often occurs with constipation rather than diarrhea. There should be no abdominal pain in the case of hemorrhoids.
1) Get your stool DR (detailed report) simple test to see stool infection.
2) Take anti-spasmodic medicine like Mebeverine (Mebeverine hydrochloride 135 mg) or Drotaverine (40 mg of Drotaverine hydrochloride) half an hour before meals twice a day.
3) Start probiotics once daily.
4) If there is an infection in your stool report, you may need a short course of antibiotics.