Doctor called told me I have bacterial vaginosis

I am over 20 weeks and I shouldn’t have googled cuz now I’m all freaked out. They gave me medicine I’m gonna take but now I’m all worried about miscarriages and premature birth and infections after birth. My head is spinning.