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

Yes, that is exactly the link that caused the indexation. So it is still internally linked, but not visable in the frontend. Google still sees those links. They are just set to noindex, so that Google won’t index these pages. They are still available for Google and will be as long as they exist, Google will just crawl these URLs less often.