Anyone had a miscarriage while taking metformin?

🎀GirlMom 01/2023🎀
My OB prescribed metformin 500 mg 2x a day to help Balance my hormones due to my PCOS to get me pregnant. I got pregnant the 30 days after taking it but miscarried the next week after I found out.. Anyone else in the same boat?