I don't see much opportunity to establish an obligation by the bank to act as your landlord, but, that said, consult with a local attorney experienced in landlord / tenant law. Buffalo may have certain law on the books favorable to tenants under which you may be able to file for an extension of your lease term. Courts look favorably on tenants that pay rent on time.
This is not intended as legal advice but as educational information only. One should seek independent legal counsel.
No. New York tenants do net get kicked to the curb even if not paying rent. Your landlord may be engaged in the foreclosure process for a long time. In any case, as long as you are a tenant and continue to reside at the property your rent obligation does not cease.
Read more about your rights as a New York tenant at:
A landlord's foreclosure is a matter between the landlord and his/her/its bank, In the event the lender successfully takes the property by foreclosure, the lender takes the premises subject to your tenancy.
This communication is intended only to provide general information. No attorney-client relationship is created.