Hello! Thanks for putting your query in HCM. I am a Gastroenterologist (DM).
It appears that you are suffering from IBS (irritable bowel syndrome
For this take:
fibres at night
2. Mild antispasmodic agent like mebevarine
3. Take a proton pump
inhibitor like rabeprazole
along with a prokinetic agent like domperidone
4. Avoid dairy products if they worsen your symptoms
5. take a course of probiotic
6. take antianxiety agent like clonazepam
I hope I have answered your query and this will help you. If you have any further query I will be happy to answer that too. Remain in touch and get-well soon.