The exact issue with the build is not clear from the log. Can you clean up the project (./gradlew clean, vaadinClean, remove node_modules) and run the build again?
Vaadin seems to be having trouble finding the appropriate version of the Node.js package manager during the build process.
Are you able to update the version of pnpm on your computer?
As a workaround you can change the following setting to false in the application.properties
# Use pnpm to speed up project initialization and save disk space
vaadin.pnpm.enable = false