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

What you said has nothing to do with the problem. These pages need deindexed, not blocked from crawling which editing a robots.txt file would do. Also, this has nothing to do with backlinks, so there is nothing to disavow. Thanks, but not helpful.