Pain near left ovary

Rachael
I am about two days from my period, and my left ovary had sharp pains about three times this morning within a few hours of each other. Nothing like a cramp I've ever experienced. My husband and I have been TTC for almost 2 years. I just began taking metformin about a month ago. Could it be that!? Thanks for your input.