Crazy laws like this are one reason why no one builds new rental property there. Rent to a business? Fine. But never build to rent to someone to live there. And then listen to the city council cry about the lack of affordable housing.
It might be that the only way out of this is eviction by oxidation, where the newly bare lot will be worth more than the lot plus house with the very expensive renter.