Here is something strange. I have constant intestine issues, i go poop 4-10x a day, for 25 years now. Except when i go sleep in a new place like vacations, i wont poop for 4 days in a row.
but it sounds like you are also eating something your body doesn't like. for example, before i discovered i was allergic to gluten, i would also poop dozens of small sessions per day. all that went away after doing an elimination diet (systematically introducing 1 new ingredient at a time until you find the problems).
https://en.wikipedia.org/wiki/Skin_allergy_test
A quick search shows that it works for gluten intolerance/celiac disease too.
My mom went through this back in the 80s or so after having mysterious issues - turned out it was raw(ish) onion that was the culprit.
I’d second the other comments and suggest you research SIBO, gluten intolerance, and fringe diets such as paleo; and do an elimination diet.