Confused! Help

Okay everyone. So recently I read on the internet that having bacterial vaginosis can affect your baby if you’re pregnant. Well I’ve been ttc and after reading that I’m kind of worried because I do get BV somewhat often. Has anyone else had this problem? Is there any medication to help avoid bv or probiotics? I know about the pill that you can receive from a doctor. But anything you know of to keep it from reoccurring? Thank you in advance for any advise 🙂