Since on average the people don't have patience and don't act with responsibility, spaghetti gets everywhere. It may sound tempting to ban the AI-generated code, but the issue is not the AI, but the lack of responsibility and potentially the the lack of experience of the developers whom are contributing with this spaghetti slop.
The judgment should go for the end result and the author is responsible if the code is bad. Add exponential back-off to contributions if they are bad.
It is also possible to brute-force maintainers with too many things to review, but you can also limit the lines of code they can contribute, unless they have some sort of reputation.
Banning the AI just means that everyone is using it, but nobody is saying it aloud. Since it saves so much time when used correctly.