It is a webpack 5 issue. More specifically webpack 5 being loaded multiple times.
The stack trace might help. If you create a minimum reproduction it will both help us make sense of the problem, and help you find a workaround if you need an urgent fix.