overrideConfig() is a public static function in includes/installer/installer.php and it defines a constant without first checking if it is already defined. This function can be called more than once if you are doing some custom install task or setting up wiki farms, etc...
the fix is simple:
if ( !defined( 'MW_NO_SESSION_HANDLER' ) ) { define( 'MW_NO_SESSION_HANDLER', 1 ); }