Deletion of many errors(>2100) causes problem. On MSSQL "IN statement" is limited, so make handy chunks and delete in blocks.
Here chunkSize is 1000. For deletion of 1100 entries deletion will be executed twice. One with 1000 elements, last with 100.