It could be a combination of the 2 really. They recommend that if you change foods to make it gradual. Give him some plain boiled chicken and a little white rice to get his tummy settled down. I hope he feels better soon. I would also not recommend Beneful try Solid Gold Wee Bits, Candidae or Verus it has a ton of nutritional value with little to no fillers.
Welcome to YT