I had nodejs configured for 18.x.x and npm 9.x.x. The build engine started trying to pull npm 9.7.0 starting 2023-05-31 and failing. I had to force it to npm 9.6.x to get builds working again.
We're running into this issue as well, how did you force the build to use 9.6 instead of 9.7?