If you rub the spot where the needle went in, quite firmly, immediately after the vet has given the jab it helps to prevent this.
It helps distribute the vaccine & can prevent local inflammation causing the lump. I learned this from some old breeders of my other breed. It works