Hi, welcome to the ehealth forum and I am glad to help you.
You seem concerned by the loss of interest in studies with the thoughts of suicide coming to your mind.
You must consult a psychiatrist for complete evaluation of your case as you might be suffering from major depression and may need immediate care and therapy. Your life is precious and the circumstances that you find yourself in will change and proper consultation with the doctor can help you get out of the difficult situation that you find yourself in. You might be helped by medications and other therapies like cognitive behavioral therapy and interpersonal therapy.
Hope this helps. Take care.
Note: This post is not to emphasise final diagnosis as the same cannot be made online and is aimed just to provide medical information and no treatment suggested above be taken without face to face consultation with health care professional.