Copyright won't be a problem. There's enough big business wrapped up in AI usage that the laws will bend towards them. Code quality and community don't die just because people haven't quite figured out how to use the new tools properly yet; quality merely dips for awhile, and the community continues as before. We survived PHP. We can survive this.
If anything I think discipline and rigor will go up.
I think it will force us to adopt stronger type systems, formal methods, and more automated verification.