Bacterial vaginosis 😭

My doctor has diagnosed me with bacterial vaginosis and has placed me on antibiotics (flagyl). I am nervous because I read BV can lead to miscarriages and I've also heard antibiotics is not good for the baby. Has this happened to anyone?