It seems we want to turn universities into McDonalds where we push high numbers, but also pretend they are elite institutions that we can charge premium prices for. This is not going to work well in an age of ever increasing automated intelligence...
Well, lest of course the students sit under the watchful eye of AI in the near future
You have to both adjust your expectations and make a significant part of your grading use an in-person one-on-one oral exam or project walkthrough.
It is a huge commitment of time - most professors I know seem to have quietly accepted cheating will be be rewarded because they don't have enough time to verify student performance.