This condition is called as irritable bowel syndrome, with altered bowel habit
...it always come with loss of sleep ,depression and anxiety issues.
Might be associated with multivitamin difficiency like vit d ,
b12.etc.
Irregular daily activities.
Next Steps
you should take drugs including.pantocid ,lesuride and prebiotic along with some anti anxiety drugs.
Health Tips
go for upper gi and colonscopy to rule out ulcerative colitis