We all go through rough patches in our mental health, as horrible as it is it is especially common in students. However I wouldn't worry too much about becoming like Avicii, his symptoms can be considered rather vague in the grand scheme of things. However if you have had thoughts about taking your own life, I urge you to seek some form of professional mental help.
Personally, I have had similar thoughts and feelings, so you are not alone with them, just try to keep a close circle and maybe contact your school about any thoughts that are taking away from your focus of happiness (if you are in school that is).
If you're unable to contact somebody due to an unsafe home however, answer back to this and ill redirect you to soem discreet care services you can take online.