When is the word "vaccine" uncountable?
Solution 1:
In the sentence
We have enough vaccine for everyone,
vaccine is uncountable. If it were countable, it would be vaccines. Compare
We have enough books for everyone.
We have enough coffee for everyone.
Using coffees and book sound strange in those sentences.
And people really do say "enough vaccine for everyone." See Google Ngrams.