Try grief prevention, I think there is support for specific entities from different mods using /cf entity-spawn Pixelmon:mobname false. Check the wiki though. If you need help join the discord everyone is very helpful. There is a Pixelmon section on the wiki too.