Please help me understand what is happening.
you love a difficult person, and youre in a difficult relationship.
the good news is that things really can get better. at the same time, its important to understand the problems did not begin over night, are multi layered, and they wont be resolved over night.
it will help to get acquainted with the tools, and to practice them. this is a really good place to start:
https://bpdfamily.com/content/ending-conflictit will also help to know that changing your approach, and changing the way the two of you communicate with each other can be really awkward at first. practice can help you become natural at it. i dont have anyone with bpd in my life currently, but i use the tools all the time, and they "work" with everyone.
I would think it was the pregnancy but she has been like this since before.
it is probably a significant factor. its a stressful time for both of you, and people with bpd traits generally do not handle stress well. right now, things may be a little bit "extra" trying, for both of you.