This is a simple trolley problem and it's the same for basically all medications and medical procedures. You either do nothing (don't vaccinate) and lots of people die, or you pull the lever (vaccinate) and maybe a few people die from rare side-effects, but many more are saved by eliminating the virus.