Break the validation loop if at least one model is invalid.