Yeah, it's because of Pokedit. Smaller changes casued by Pokedit (i.e artificial IVs, EVs or Trainer I.D) can affect the legitimacy of the Pokemon used, causing an error. It's not exactly known why this happens, but there ya go. Use a party of 6 random Pokemon caught from the wild to test it, if you want.