2 month shots comfort nursing

Da
My 2 month old just got her shots. She wants to comfort nurse which is fine but after comfort nursing for an hour she threw up twice... she won't take a pacifier... any tips? She just wants to be on the boob all the time but I don't want her to keep throwing up