What I've seen is that the most probable "problem tenants" (Section 8 or otherwise) are looking for "mom and pop" or unexperienced / unprofessional Landlords to take advantage of. So, making it clear from the start that you are running a professional rental business goes a long way towards avoiding those who are seeking just the opposite. This starts with how you present yourself and your business, how you answer the phone, your rental listing(s), your website, etc... But it really gets serious with how you handle showings, your application, how you conduct tenant screening, credit / background checks and your communication style throughout all of this. And once you've got an approved applicant, then you present them with your lease, which needs to be comprehensive in its protection for you and of your property (mine is 24 pages and counting as I encounter new issues, and it contains fines for certain violations) - check your state laws. Make it clear you'll be conducting inspections (I do them up to every 4 months / 3 times per year).
But in your question, you used the word "prevent', which is NOT possible. But such things as I've stated above (and a whole lot more that would require I write a book) will greatly reduce the likelihood of a bad rental outcome. I've been doing it since 2015 (including Section 8), and I've yet to have any damage done that exceeded the security deposit. And while I've had to file for eviction a few times (each over past due rent), none made it to the point of a Sherif put-out - and again, no serious damage done.