miscarriage (n.)
1580s, "mistake, error;" 1610s, "misbehavior;" see miscarry + -age. Meaning "untimely delivery" is from 1660s. Miscarriage of justice is from 1875.