* money
* visa status
Money is probably a bit easier to deal with, so I'd focus on building your financial runway. Save whatever you can. Cut costs. I don't know your living situation at all, but think about big things (where you live, what you drive/how you commute) and little things (going out, subscriptions). Examine your expenses and come up with a barebones number. Is it $1000/month? $3,000? $6,000? I don't know, but you should figure that out. Then you can decide how many months or years of runway you'd need to feel comfortable, and aim to save that much.
Next, the visa issue. Others have suggested consulting an immigration lawyer. That makes a lot of sense to me. At the least, you'll know your situation more precisely (how many days after a layoff you'd have to find a job, what it would take to change your status, whether you can leave and work remotely, etc). Other options would be to start interviewing at companies who can provide you a visa, or making plans to return to your home country. Again, I don't know your situation, so can't make recommendations on which to choose.
Finally, I think it's important to acknowledge that you are probably valuable to your current employer. Why? Because you've survived 3 layoffs. So you are either a good employee, in a division that is doing relatively well, or both. If you want to stay at this company, I'd focus on that to help get you through the day.
I'm sorry you're in such a tough spot.