A flood of cases targeting noncitizens appear to stem from isolated incidents and errors but could have serious consequences — including prison and deportation