MEDYKA, Poland—Within days of Russia’s invasion of Ukraine last 7 days, the line of cars carrying folks fleeing to the country’s border with Poland was previously 55 miles lengthy.

In soaked snow and cold rain, moms commenced abandoning their autos to wander for hours, prodding fatigued youngsters as they dragged their strollers and suitcases along the road.