YouTube's recommendation engine exposed millions of users to an AI-generated NSFW thumbnail, appearing in feeds for unrelated searches.