“If the life of the mother is at risk...should the woman still be forced to birth the child?”
No. The right to self defense takes precedence there, as you are allowed to defend yourself against another person doing you harm, even if that person is not doing it intentionally or consciously.
“If the woman was a victim of raped...same question.”
That’s two questions, but I won’t hold it against you. I wouldn’t characterize it as her being “forced to birth the child” but rather “prevented from murdering the child”. Killing the child won’t unrape her; it won’t bring any justice either, as the child is innocent. She doesn’t have to raise the child, or bear any responsibility for it after it is born, but allowing a woman to kill an innocent child because she suffered a trauma is not morally justifiable as far as I’m concerned. Same goes for children who are the result of incest.
So you want to force a woman to go through a pregnancy that was a result of a traumatic event for her, just because?