The problem of losing a job at these times is that you will suffer in order to get a job, so unless you have enough money that you have saved for such days, your end will be.
The overall economic problem is that it puts the middle and poor classes in the crossfire when there are any economic shocks, and they are the first victim to bear the stupidity of politicians and their reckless thoughts.
The best solution is to develop more skills and get some savings for such times.