You can ask for civil harassment when you are in imminent danger. However if you are involved in a family law proceeding you can present the texts to the judge ad ask for relief. You could also call the police, but frankly I think you should change your number and get a phone with no text capabilities and tell her only that number. To talk with her you need a mediator or counselor.
I would consider two options: First, ask the court for a mutual restraining order, confining your communications to certain methods or subjects. This would prevent her harassing behavior and protect you from accusations of harassment. If she doesn’t comply, she’ll be in contempt.
Second, look into a service called Our Family Wizard. This allows parent who are having difficulty communicating to keep in touch regarding the kids in a useful way. Here’s a link:
Best of luck to you.
This response is intended to be a general statement of law, should not be relied upon as legal advice, does not create an attorney/client relationship and does not create a right to continuing email exchanges.
A roundup of the best tips and legal advice.