I got my GED because some credits wouldn’t transfer and I would graduate later than my peers. I dropped out of college after two years to pursue a career path (not a very smart one, in hindsight, but one that still afforded me certain opportunities). I’ve worked as a software engineer, but moved back to IT because helping people directly is more gratifying, even if it’s lower impact. There were other factors at play (hated long hours, hated long commute).
The point is, you’re not fucked. That you have to ask means that you’re in bad shape with mental health. That’s not a death sentence. Maybe try therapy (works for me) and possibly additional treatment. There might be something that requires active management or it could just be that you’ve hit a temporary rough patch. Get help and don’t be hard on yourself for needing it. Everyone does in some fashion.
One of the most profound things I was ever taught was a parent explaining that they read the memoire of someone they greatly admired and found out that they (the author) had all the same insecurities and fears. They were human.