Your financial security is just a product of the times. It used to be you could have a house, a lawn, a car and leftover savings just from working in a factory. Now, you are saddled with an unpayable house-loan even with higher education unless you somehow manage to find a remote job, or you win the startup lottery.
Last, anxiety can form bad feedback loops, where the lack of sleep means you are simply not able to do anything during the day. It can also cause other surprising problems, even wrist pains and RSI, simply because the anxiety causes your body to tense up.
I think you, first of all, need to find a way to let go of the feeling that your job performance has any bearing on your worth as a human being. It really doesn't.