In fairness, the stress shouldn't be yours to sweat. If someone loses their rental to anti short-term leasing rules, that's really on the renter who's subletting it out to you via Airbnb.
A landlord evicted you mid-stay without warning? That sounds extreme, and I'm having a hard time finding others who've experienced the same online (all of what I'm finding is around people being kicked out for parties). Do you have anything I can reference?
Asking because I'd feel like the burden in just about all cases is on the landlord to put everything in motion to evict a tenant (whether it be an airbnb user or the tenant subletting via airbnb), but I'm not an attorney.
A building did, yes. It required fob access and was clearly being sublet against the contract. The fobs stopped working, and there was no remedy. This was in 2014 in New York City, I forget the precise building though.