Hi there and hello! Welcome to the site.
This is a great place to come for support, and to learn that you're not alone. It's challenging to co-parent with someone who suffers from BPD. Even if she is pre-clinical BPD, and not full-blown BPD, it can still be a struggle. You're a caring dad and love your boys, and probably want them to grow up emotionally resilient despite having a mentally ill parent. It's possible, although it takes some big changes in our approach.
How long have you been divorced? What kind of custody arrangement do you have? Do the boys seem to be doing ok? I found it helpful to read about typical reactions of kids to divorce. This gave me a baseline about what was "normal" emotional/psychological adjustment, and what was a sign of something more troubling. There's an article here you might find useful:
https://bpdfamily.com/message_board/index.php?topic=271677.msg12577885#msg12577885How are you holding up? Co-parenting with someone who has BPD is not easy, and can take a toll. I hope you find peace and solutions here.
LnL