You can use a special environment variable, _ERROR_THRESHOLD, to establish thresholds for individual steps and/or for a project. The system then counts the number of filter matches, and either fails the step or project when the threshold value is met, or notes the fact that the threshold was met in the job notes.
For more information, see Special Case Variables.