Baloney, on several fronts.
Russia's last attack was a "surprise" that, once you stopped thinking "they'll never do that", you could see coming miles and weeks away. You can't do large-scale attacks without moving large numbers of troops, and it's really hard to hide moving large numbers of troops.
Peacetime makes it harder to be prepared? Perhaps in a way (psychologically). But in another way, it's a lot easier to prepare when you're not getting shot at and bombed at every step.
Peace makes Ukraine more unsafe? You know what makes them really unsafe? Having an army actively shooting at them.
Look, I'm not "peace at any price". Some prices are too high, higher than continuing the war. But "Russia continues to exist and is going to come back and attack us again at some point" is not such a price. It's a danger to prepare for, but it's not a price too high to accept an end of this war. (Of course, whether it's worth it is going to depend on exactly what the end looks like...)