Sorry for the bad news. OTOH, you have the means and mindset to turn this into the best thing that ever happened to you.
First, file for unemployment. That will give you some significant income replacement. Yes, it does require you to keep looking for a job, but since you won't be working 8-10 hrs/day, you'll still have plenty of downtime to figure things out.
Second, understand that you don't actually need to have your whole future planned out right now. In fact, I'd push you not to make other major life changes right now, while you're still figuring out what you want to do and where you want to be. Who cares if rents rise in a couple of years? You can afford your apartment right now, and if they raise rents, you can make a decision about a move then.
Whatever you do, don't jump into buying a house now. Right now you need free cash to cover your expenses. The last thing you want to do is to lock some of your capital in illiquid real estate and/or lock yourself into 30 years of mortgage, taxes, insurance, maintenance, etc. You have no idea what the rest of your life is going to look like. Maybe you'll love where you are, maybe you'll want to move somewhere else, maybe you'll want to go back to work in a few years or get involved with some passion project that is inconvenient to your current location, maybe you'll meet someone you want to move in with, etc. etc. etc. The absolutely lovely thing about renting is that it gives you the flexibility to pull up stakes and move whenever and wherever you want to. Don't even think about buying unless and until you have a clear vision of what you want your life to be for at least the next decade.