Post natal depression and psychosis sometimes cause incredibly unwell mothers to harm their children - often believing that it is somehow the right thing to do to protect their child from further suffering. PND can persist beyond the baby years.
I'm completely convinced that those women too need extensive help and should not be punished with jail time, because they were extremely sick at the time and in altered states of reality.
Women in all of these situations have been failed by their families, medical team and wider society.