Mental health problems affecting performance in coursework. Who (advisor, professors) should I talk to, and how?
Get professional treatment.

That's step one. The rest is details to worry about later.

I actually don't know the answer to the rest of your questions although I am positive seeing a professional sooner than later is going to make everything go better.