Laravel installer error – Could not scan for classes vendor/sebastian/code-unit-reverse-lookup/src/ which does not appear to be a file [duplicate]

When trying to create a new Laravel project, the Laravel installer throws the following error:

Could not scan for classes inside "/home/aes256/test/vendor/sebastian/code-unit-reverse-lookup/src/" which does not appear to be a file nor a folder
> pre-package-uninstall: IlluminateFoundationComposerScripts::prePackageUninstall
Script IlluminateFoundationComposerScripts::prePackageUninstall handling the pre-package-uninstall event terminated with an exception

In ComposerScripts.php line 66:

  [ErrorException]
  Constant LARAVEL_START already defined

Re-running the Laravel installer with verbose mode shows the following additional info:

Executing async command (CWD): 'rm' '-rf' '/home/aes256/test/vendor/sebastian/code-unit-reverse-lookup'
Could not scan for classes inside "/home/aes256/test/vendor/sebastian/code-unit-reverse-lookup/src/" which does not appear to be a file nor a folder
> pre-package-uninstall: IlluminateFoundationComposerScripts::prePackageUninstall
Script IlluminateFoundationComposerScripts::prePackageUninstall handling the pre-package-uninstall event terminated with an exception

In ComposerScripts.php line 66:

  [ErrorException]
  Constant LARAVEL_START already defined


Exception trace:
  at /home/aes256/test/vendor/laravel/framework/src/Illuminate/Foundation/ComposerScripts.php:66
 IlluminateFoundationBootstrapHandleExceptions->handleError() at /home/aes256/test/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php:258
 IlluminateFoundationBootstrapHandleExceptions->{closure:IlluminateFoundationBootstrapHandleExceptions::forwardsTo():257}() at n/a:n/a
 define() at /home/aes256/test/vendor/laravel/framework/src/Illuminate/Foundation/ComposerScripts.php:66
 IlluminateFoundationComposerScripts::prePackageUninstall() at phar:///usr/bin/composer/src/Composer/EventDispatcher/EventDispatcher.php:508
 ComposerEventDispatcherEventDispatcher->executeEventPhpScript() at phar:///usr/bin/composer/src/Composer/EventDispatcher/EventDispatcher.php:284
 ComposerEventDispatcherEventDispatcher->doDispatch() at phar:///usr/bin/composer/src/Composer/EventDispatcher/EventDispatcher.php:158
 ComposerEventDispatcherEventDispatcher->dispatchPackageEvent() at phar:///usr/bin/composer/src/Composer/Installer/InstallationManager.php:369
 ComposerInstallerInstallationManager->executeBatch() at phar:///usr/bin/composer/src/Composer/Installer/InstallationManager.php:322
 ComposerInstallerInstallationManager->downloadAndExecuteBatch() at phar:///usr/bin/composer/src/Composer/Installer/InstallationManager.php:221
 ComposerInstallerInstallationManager->execute() at phar:///usr/bin/composer/src/Composer/Installer.php:839
 ComposerInstaller->doInstall() at phar:///usr/bin/composer/src/Composer/Installer.php:649
 ComposerInstaller->doUpdate() at phar:///usr/bin/composer/src/Composer/Installer.php:298
 ComposerInstaller->run() at phar:///usr/bin/composer/src/Composer/Command/UpdateCommand.php:281
 ComposerCommandUpdateCommand->execute() at phar:///usr/bin/composer/vendor/symfony/console/Command/Command.php:298
 SymfonyComponentConsoleCommandCommand->run() at phar:///usr/bin/composer/vendor/symfony/console/Application.php:1040
 SymfonyComponentConsoleApplication->doRunCommand() at phar:///usr/bin/composer/vendor/symfony/console/Application.php:301
 SymfonyComponentConsoleApplication->doRun() at phar:///usr/bin/composer/src/Composer/Console/Application.php:400
 ComposerConsoleApplication->doRun() at phar:///usr/bin/composer/vendor/symfony/console/Application.php:171
 SymfonyComponentConsoleApplication->run() at phar:///usr/bin/composer/src/Composer/Console/Application.php:137
 ComposerConsoleApplication->run() at phar:///usr/bin/composer/bin/composer:98
 require() at /usr/bin/composer:29

Is it something to be concerned about?

Tried a different Linux machine with fresh PHP + Composer install, same error.

edit: trying to create new project using PHPUnit instead of Pest works fine.