Is there ever a point of emotional instability beyond which a women may have an abortion?
I know all cases are different but here are some possible examples:
A) she struggles too much with the number of kids she has already and this one was a 'mistake' and she now has regular panic attacks,
B) she is told during pregnancy that there's a small chance that the baby will be deformed in some way leading to severe anxiety,
C) she is very young and cant cope with thinking that she wont be able to complete an education and 'doom' her life leading to severe depression
D) a woman gets raped and can't cope with the thought of baring a child of her rapist, etc.
Is there ever an emotional point beyond which the pregnancy can be terminated? And does it depend on how far along she is in the pregnancy in terms of being 'מקיל' or 'מחמיר' to abort? If the baby is viable do we disregard the woman's mental health despite it being possible that her life could be 'emotionally ruined' and save the baby, or not?
I'm interested if there are these considerations in 'older' sources; most of the room for leniency that I've seen are based on more modern sources.