The shake-up could become a test of Zelensky’s political authority as Ukraine’s fight against Russia’s full-scale invasion approaches four and a half years