Add this before the line that loads wp-settings.php if the installer cannot write wp-config.php:

define('WP_RECOVERY_TOKEN', 'PASTE_A_RANDOM_64_CHARACTER_TOKEN_HERE');
