criminal irresponsibility

crim·i·nal ir·re·spon·si·bil·i·ty

the state, usually attributed to mental defect or disease, that renders a person not responsible for criminal conduct.