What is left is that you can deal with "what is". While you can't "fix" her - and admittedly the marriage was dysfunctional and is over unless she turns around and really seeks meaningful long term therapy - you can be very strategic in the way you proactively defend yourself and enhance your parenting.
People with BPD traits have long been referred to as self-centered Blamers and Blame Shifters, their patterns are somewhat predictable. We have an extensive array of time-tested strategies, tools and skills on our boards.
Don't doubt yourself, focus on recovery for yourself and smartly ensure you will walk out with as much parenting as possible in the initial "temp" order and later final decree.
