My experience with metformin, those gastrointestinal problems occur the first 4 months of taking it.
I had an experience in a Home Depot, had to briskly walk to the bathroom. Like clenching a quater between your cheeks for a 100 yards. Barely made it.
Anyway, the body adjusts. After 3 or 4 months, all is good.