The only way it would have been avoidable is for the EU and NATO to withdraw their support (economic, political, military) from Ukraine, in order to enable the Kremlin to bring about a Russia-friendly regime by non-military means. Putin’s goal was always to turn Ukraine back into at least a vassal state of Russia. Given the western-oriented developments in Ukraine since 2014, the opportunity window was slowly closing, time was running out.