How were you diagnosed with herpes? What kind of testing did you have?
Yes, it's entirely possible that you've had it for a long time and didn't know it. That happens more than you'd realize. It's also possible that you got hsv1 genitally from your current partner, if they perform oral sex on you. About half the adult population has oral hsv1, and 90% won't ever get symptoms, but they can transmit it.
The best way to prevent outbreaks is valtrex. Some people swear by lysine, but a lot of studies haven't really proven that to work well. It also doesn't do anything to prevent transmission, if that's a concern for you.
Let's start with how you were diagnosed, and if you know what type you have - you can have hsv1 or hsv2 genitally - and go from there.
You can read the herpes handbook, written by Terri Warren, one of the world's leading experts on herpes, for free here - https://westoverheights.com/herpes/the-updated-herpes-handbook/
BV can trigger an outbreak, or a new herpes infection can cause BV. Make sure you are treating that, as well.