Zend certified PHP/Magento developer

Magento 2: Command returned non-zero exit code during submission on marketplace

I have submitted a module to the marketplace, I have tested it by all cases. I have switched to production mode but I am not getting any errors. However, I am getting a failure on submission with the below errors.

Enabling maintenance mode Starting compilation Something went wrong
while compiling generated code. See the error log for details.
Disabling maintenance mode Command returned non-zero exit code:
/usr/bin/php -f /var/www/html/bin/magento setup:di:compile

Environment: PHP 7.1.22 Magento 2.3 CE
php bin/magento deploy:mode:set production