Is it possible to save a (science) PhD in 10 months?
To be honest, from your description I would be less concerned with finishing your PhD and more concerned about your mental health.

You should probably talk to a mental health professional or GP, and then worry about this. The chances that the road to a PhD would be forever closed for you is reasonably small, but if you don't take care of yourself the impacts can be significant.