An attorney can help with eviction issues and explain the circumstances when you might be able to stay in the rental unit.
There are free legal service provides that can represent tenants who qualify for their services. You can find these provides at https://www.lawhelpny.org/