Praise be to Allah.
This woman and her guardians should be keen to choose a righteous husband who is pleasing in terms of his religious commitment and character, after asking and researching and trying to find out, and they should not be deceived by outward appearances or only focus on his financial standing.
We ask Allah, may he be exalted, to make this sister patient and grant her reward, and to compensate her with something better.
We advise her to be patient, in the hope that Allah, may He be exalted, will heal her husband and rectify his condition. That will be better for her and her foetus than divorce.
As for aborting the foetus before forty days have passed, there is a well-known difference of opinion among the fuqaha’. This has been discussed in a number of previous questions. Please see the answer to question no. 13319 and 42321 .
And Allah knows best.