Supplements for diarrhea caused by medicine?

I tried metformin previously and had vicious diarrhea constantly so I ended up switching to glipizide instead. I’m currently on 2.5 mg a day so not that much but I’m still having issues with diarrhea (thankfully not as bad as when I was on metformin)

I took the glipizide for about 2-3 weeks and stopped because I was tired of the diarrhea. I couldn’t eat anything cause after 1 bite I would have to run the bathroom. Definitely couldn’t eat at work since I’m the only manager on the floor and can’t be in the bathroom for 10 minutes.

I know I need to start taking my meds again and would like to so I need some advice on how to deal with the diarrhea. Is it safe to take an anti-diarrheal medicine every day? Are there any supplements that work to combat this issue? Like a daily fiber or daily probiotic supplement? Any info is helpful :)