If you got money to survive maybe for ~6 months without a job, you can take a risk by resigning.
If not and you resign anyways, you will be more stressed on your way to find a job quickly due to financial pressure
As you already know, job market is very gloomy now days