Ukrainian President Volodymyr Zelenskyy warned that a swift end to hostilities could force his country into a defeat.