Responded to @kasparsd:
I’ve created a repository with minimal configuration to replicate all of these issues: https://github.com/kasparsd/wp-scripts-build-issues
And here is the pull request to fix them: https://github.com/WordPress/gutenberg/pull/69828