How can I prevent the new indexing bug from creating useless pages on Google?

Sorry, I meant 404 Error logs in my search console.