Well it is due to dosage of medicine you have given to your cat because 4 year old kitten have sensitive stomach and you should give him less quantity.
Too much can make it sick..talk to your vet. Different types of wormers have different effects on animals just as all meds are not suitable for humans.