The problem is that defensive capability cannot be just built all of a sudden if it turns out to be needed after all.
Of course the reason that has become a problem is Putin's aggression and authoritarian rule.
But Europe has indeed been weak in the sense of not having maintained defensive capability. Perhaps that is, both fortunately and unfortunately, changing. (Fortunately for obvious reasons, unfortunately because it means significant spending on something that should not be necessary even though it is.)
Hopefully EU societies will remain strong and resilient in the sense they've been strong all along: strong civil society and democracy.