I added the following lines to wp-config.php
define( ‘WP_DEBUG’, true);
define( ‘WP_DEBUG_DISPLAY’, false);
define( ‘WP_DEBUG_LOG’, true);
it did create a debug.log file in the wp-content folder but there was nothing in it when the Internal Server Error occurred.