Economics say that technological advances hurt those displaced for a short period of time but the entire rest of the economy improves and the displaced people are smart enough to find other jobs in the new economy with higher standard of living...
Unless the value created never makes it back to the economy...
My dude, please get some professional help. I am religious, so if you ask me, I would point there, but seriously, you are worth it and you are at least worth the memes you post. I bet that you could grow a bunch from a place of stability, and have a pretty rad life to look forward to
Here is some other advice:
ask chat-gpt for some exercises to help you get your brain where it should be and a timeline. Then execute. Rinse repeat
reduce social media (including Lemmy) a good "cold turkey" break would be a cruise or something.
obtain physically proximate friends via volunteering at a local food bank or similar nonprofit.