Welcome and ((HUGS))!!!
I believe you can get your life back together with proper treatment. It's good that you are realizing you have a problem and are willing to work with professionals to get it under control. Maybe if your wife sees your newfound responsibility for your illness, she will give you another chance. Whatever happens, I hope for the best for you.
By the way, a common mistake people make is saying "BPD" for bipolar but that actually means Borderline Personality Disorder. Is that what you meant or did you mean "BP" for bipolar disorder? I know it is confusing.
We're a supportive bunch here with a very active community, so keep posting! You'll love it here.
__________________
...Out of night and alarm
Out of terrible dreams
Reach me your hand!
This is the meaning that we suffered in sleep:
The white peace of the waking.
~Edna St. Vincent Millay, "Song of the Nations"~
Diagnoses: Bipolar 2, OCD, Chronic Worrywart

Meds: Lithium (reducing), Trileptal, Latuda, Risperdal, Klonopin and Xanax PRN