Try to seek help from a professional. And at the end of the day, regardless of what these companies and some silly techies on here will have you believe, you’re a worthwhile human who deserves happiness. And your value is not defined by your job title, or TC, or pedigree.
It’s inherent to who you are. Existing and having an inner experience gives you your worthiness. So, even at your low points, remember that you are important and the world needs you!