A million times this. It makes more sense to panic prep for the climate emergency that we are definitely facing (though whether you can 'prep' for it is a question for another thread).
War is still a hypothetical and we are not close to the dark days of the cold war where it really looked like the end was coming.
It's not your fault OP. Humans are shit at assessing risk. War is a more novel fear so your anxious brain is going into overdrive. The more pressing and realistic danger we all face doesn't appear to have the same urgency to your brain, but logically it makes more sense to prep for that if you are going to prep for anything.