Sounds like mild anxiety that you're dwelling on and turning into an existential thing. Exercise and get some sleep. Articulate a simple goal you can achieve in the near term and try to achieve it. Repeat.
Maybe read Notes from the Underground while you're at it. Consider it a cautionary tale.