catalog:images:resize command stops at 100/2115 images with Error sending QUERY packet

I just migrated an inventory from one Ecommerce Platform to Magento and while running the image:resize command to re-scale the images for them to display, the command consistently fails when it reaches 100 images, this is 100/2115.

Error Message:

Warning: Error while sending QUERY packet. PID=11883 in /home/[server]/public_html/magento/vendor/magento/zendframework1/library/Zend/Db/Statement/Pdo.php on line 228  

Does anyone know if there is a work around for this or solution?