Since the mother was excommunicated, she should have no qualms about divorcing her slimeball rapist husband.
Well, she could certainly divorce him with a clear conscience in any case. It’s remarriage following divorce that is objectionable to the church, not necessarily divorce per se. If divorce is necessary to protect a child from a rapist, then divorce is necessary.