Error "Invalid UTF-8 string in BSON document" after rebuild on Windows

I found out what was going on with it, at least in my case. I remembered that the previous week I had upgraded my Node version from 20 to 22, and when I downgraded it back to 20, the errors stopped.