Freaking out!

I just found out I have bacterial vaginosis, I’m 17 weeks pregnant with my rainbow baby and I’m so scared! I’ve read it can cause preterm delivery, I lost my last baby when he was delivered too early so now I’m in a full blown panic. Help! Has anyone else had this and been okay? I’m so confused on how I got it, I’m very hygienic and I’ve only had the one partner for years now. :(