I get where you're coming from OP. I've been really mad at my parents for not getting their mental health shit together before having kids. Which was basically responsible for me developing severe anxiety and attachment issues, and my sister milder attachment issues. And you're supposed to make sure you're kids are happy, not saddle them with your unresolved issues.
However, as far as I know anxiety isn't genetically hereditary, and my developing it is all because of their behavior influencing my/our upbringing. And it's made me adament in making sure I get my shit in order myself before I ever have kids.
So I get your concerns. And looking at bipolar disorder specifically, it seems that it is gentically hereditary. The odds of a child developing bipolar disorder if you have a close relative with bd is ten percent higher. And since your mom has it, and you think you have it, I'd say that applies to you. Very much unfortunately. Though I would really advise getting diagnosed.
That said, healthy stress coping skills seem to affect triggering bipolar symptoms. So if you have those, and a child would have those, it diminishes the chances.
This is all off the top of my head from my psychology studies though. If you're really serious about dealing with this you should really get help from a professional.