The rule is if you are paying "market" rental rates. So if you are getting "below" market rent, the lender may require you to move as soon as 90 days "after" you are served (at your work it may happen, by the way...embarassing!) so I would recommend thoroughly checking out a landlord when renting. Also you may be "named" in the foreclosure lawsuit so you may have to explain why you were named (although it shouldn't be held against you) in a foreclosure lawsuit.
If you can't get your financial in order to become an "owner" then in the future rent in a complex and save, save, save, so you will not have to be at the mercy of landlord for too long. Sorry to be blunt but in this market there are a lot of scammers that will take advantage of tenants.