Metformin Causing Anxiety?

I’ve been taking Metformin daily for about six months. Three months ago, my gyn increased the dose to twice daily. I’ve had extreme anxiety + panic attacks that have been worsening over the last three months. I’ve changed my lifestyle quite a bit (diet, exercise, meditation, etc) to try to combat the anxiety and nothing has worked. Could it be the Metformin?