I don’t think you read her post carefully. She said her husband had a severe mental problem. It would be rash to conclude that the priest who told her civil divorce was appropriate in her case did not discern that her marriage was invalid or that there were not reasons of a grave nature that would allow a validly-married couple to obtain a
civil divorce. (That is, discontinuation of a common conjugal life and a just legal division of assets, even though neither party would be free to marry anyone else.)
Can. 1095 The following are incapable of contracting marriage:
1/ those who lack the sufficient use of reason;
2/ those who suffer from a grave defect of discretion of judgment concerning the essential matrimonial rights and duties mutually to be handed over and accepted;
3/ those who are not able to assume the essential obligations of marriage for causes of a psychic nature
These are reasons for annulment, that there was no marriage, but she is married, no? If not, then why do you say “her husband?” I’m confused.
Can. 1123 Whenever a marriage is either convalidated in the external forum, declared null, or legitimately dissolved other than by death
Chapter 7, the Separation of Spouses, says:
Can. 1141 A marriage that is ratum et consummatum can be dissolved by no human power and by no cause, except death.
Can. 1153 §1. If either of the spouses causes grave mental or physical danger to the other spouse or to the offspring or otherwise renders common life too difficult, that spouse gives the other a legitimate cause for leaving, either by decree of the local ordinary or even on his or her own authority if there is danger in delay.
Separation is not divorce, though.
Also, as I posted elsewhere,
sex is not essential to the sacrament of matrimony.