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

This has happened to me also since the 18th of January