I had a bit of drug induced depression.
Its something that passes with time usually. You also need to stop allowing others to affect your life through the things they say, or the way they treat you. Failure isn't necessarily bad, you learn from your failures and then you can succeed over them. I just wish you the best of luck in this journey.