Before I learned some of the tactics of dealing with a BPD I use to share some of the things my wife was doing to me and how they affected me. Within hours I was accused of doing the same things to her and with in a few days she would be suffering the same symptoms according to her. I spent five years unknowingly suffering from ptsd. When I revealed the diagnosis to her she laughed at me and said "leave it to you to come up with something so dramatic". I can only imagine how much of what I have said to her in private and in therapy I will hear again in court as her reasons for custody.
A person with BPD will use the same tactics to get us close as to push us away. The book title "I Hate You, Don't Leave Me" really does sum up the dynamic.
I still remember sitting in MC with my ex and hearing my exact words come out of her mouth... . at which time we had an argument over who said it and when... .

... . fun times.
As you are going through the divorce process - I will share with you one of the best things that I read... . get the best therapist and lawyer you can afford... . nothing will be easy or straightforward in this process.
Hang in there - the legal board is a fantastic resource.
Peace,
SB