There are considerable risks for Ukraine if it chooses to fight on rather than seek a deal to end the war with Russia.