A less drastic solution, which doesn't require much money, is to just force lenders to allow landlords who lost tenants or whose tenants can't pay to allow the landlord to defer loan payments (extending the final date of the loan).
It's not exactly fair to landlords who own the properties outright, but, I can live with that.