This is a very important point. We love making fun of the Russian army, but I doubt that any of the Western countries (other than the US) would've survived the invasion if they swapped places with Ukraine. European land forces are small and severely underequipped.
The good news is that the war prompted the European governments to increase their military spending. The most notable example of that is Poland with their unprecedented shopping spree (among other things, over 1000 tanks, 48 fighter aircrafts, 600 howitzers and 500 MLRS). Of course, it will take years until those investments result in a meaningful increase in military capabilities.