Quantization calibration crashes if using too many images

I tried to use a 1,000 images from ImageNet to calibrate my network quantization. However, it seemed that the calibration process crashed after going through 100+ images. If I use less than 100 images, the calibration process would not crash. What is the reason for this?