There are millions of people that struggle with mental health issues daily, including women that have postpartum depression. They don't kill people, including their own kids, and get away with it.
We cannot set the precedent that there is an out for any person claiming that mental illness made them do this and they get to go on with their life like nothing happened.
The majority of mentally ill people that kill people face the consequences, why shouldn't she?