mark task as failed after it has generated this many errors