Very suicidal after stopping smoking weed

I smoked weed for 2 years between 21/22 and now 23. Last year was particularly heavy because of my breakup.

Meanwhile, I'm taking a master's abroad and going through withdrawal symptoms while completely alone in a new country. I'm getting seriously suicidal and my parents have been recommending me to go back home.

I don't know what to do and I feel like my life is shattering into pieces. I can't focus on my master's, I don't seem to enjoy it that much, I need help, but I also don't want to fail all this and get back at my small town.

(Update: I got back to my small town, quit my master's and have been clean for almost 5 months. Applying for a new master's and have been going to job interviews in order to get back to the "big" city. I've reconnected with friends and family, I enjoy life again and keep rebuilding myself. At the time of this post, I felt incredibly alone, depressed and thought it was truly the end. In fact, it was the beginning of a hard but very rewarding path. Things are not perfect, there's relationships one will not recover and damage that one cannot undo but it's never the end and better days always come sooner or later. If you haven't stopped, I encourage you to consider it. If you've started now, keep going and don't look back, don't dwell on what's already done, on what is lost, etc. You're starting new, your relationships won't be same (especially with yourself), your path in life will likely take new forms - but it's all for the best. I wish you all a lot of strength! And thank you guys so much for your amazing support!)