She was mentally ill and believed her two older sons “threatened to kill her,” her defense attorney said.