Did you check the file phpX.X-fpm.log, where X.X represents your PHP version?
If you see error "execution timed out" in the phpX.X-fpm.log file, you need to increase the value of the parameter "request_terminate_timeout" in "php-fpm.conf". The parameter "request_terminate_timeout" may be present in php-fpm configuration file of your domain.
E.g.
request_terminate_timeout = 180s
You can also increase the value of the parameter "max_execution_time".
E.g.
php_admin_value[max_execution_time] = 180