hi..you are just suffering from pessimism..what we call negative automatic thoughts..they are creeping in and making your life tremulous..losing a job is not the end of the world as you will certainly get better options if you have some things within which I presume you have..so just consult a psychiatrist
for some medication for anxiety
, if needed and a psychologist
to address your thought what we call cognitive therapy
..so just get rid of blues..best of luck..