remove previous errors when require constraint is invalid