To fight on, Putin will need a better army, with better generals, with spare parts and fuel. He will need money, and he will need to continue to clamp down on everyone in Russia because when they learn what is really going on they won't be happy.
That's why he threatens nuclear war. That the only threat he has left.