Hello Friend, Good that you are seeking a help here. Loneliness and depression are interlinked. When you are emotionally disturbed, your mind will be clouded with negative thoughts. So in such suitations, it better to avoid taking any hasty decisions. Instead ask for help.
Talk to a counselling psychologists to ventilate your emotions, feelings and concerns. This will help you to get a different prepective and clarity about yourself and about your problems. Also you can identify suitable solution to overcome this loneliness. Don't hesitate to consult. Choose online options in such suitations as it's easy and convenient for you to discuss.
Next Steps
Consult a psychologists directly or online. Feel free to reach out to me online through Practo for further detailed evaluation and recommendation.