Bacterial vaginosis

I had a miscarriage at 5 weeks on June 1st. Since then I have had a pap and everything was good except they found I had bacterial vaginosis. They gave me 2 days worth of pills to get rid of it as it's not infectious or and std or anything. Apparently it's common in pregnant women. I was curious if it could have been the cause of my miscarriage.... we are planning on trying again after my first cycle completes itself and was curious if this could have been the cause of the miscarriage.

♡mommy and daddy loves you baby Riley ♡