Hi, many thanks for the query!
You should get physically examined by your doctor for P/R examination & proctoscopy.
Stop eating spicy food, avoid non-vegetarian diet, avoid alcohol (if consuming) & also avoid late night meals.
You need to do- USG (Abdo-Pelvis), Stool (R/M), CBC.
Till then take antispasmodics, antacids like ilaprazole, sucralfate
, stool softners with your doctor's opinion.
Drink plenty of water, eat high fibre diet, green leafy vegetables.
Wish you a good health.