Most risk is covered by lease terms. Failing that, there's eviction... until the government intervened and changed the fundamental contract.
And, no, no one is going to buy your house if it has non-paying tenants that can't be evicted. They would just be inheriting your problem due to tenant's rights.