Thanks for the query to H.C.M. Forum.
Three problems are there ,
Since you mentioned that spicy food , you have to eat for motion of intestine.
Hemorrhoid ( internal according to you ) , may consult a surgeon and get his advise.
Excessive bloating in your stomach may be due to, Peptic ulcer disease
or Hiatus hernia
Diagnosis can be confirmed by upper G I endoscopy. Try raising the head of your bed 4 inch above with blocks. It also might help to avoid eating or drinking for 2 hours before you lie down. To help control the stomach bloating
one should not drink drinks wit caffeine in them or eat chocolates or greasy or spicy foods ( as you are taking so avoid it). Also take some antacid but if symptoms are severe you may need proton pump
Now diarrhea ma y be ,
1 Secretary causes
2 osmotic ,
3 steatorrheal causes
Diagnosis can be confirmed by colonoscopy
In my opinion please consult a physician and get his opinion .
Good luck. Dr. HET