Checks that the length of the files does not exceed a specific threshold.