Don’t just withdraw!!! Go see the Dean of students, a counselor about your bad thoughts and depression.
They can help you get a medical withdrawal and leave of absence so that your GPA stays intact and you can come back if you want to after you take some time off for treatment. They could make it so your scholarship stays intact so you have that option.