Little bug with eggs

so basically,i was doing an egglock and then i got this error while trying to hatch my egg:script ‘PokemonItemEffects’ line 1664:no method error occured. undefined method ‘basedamage’ for nil:NilClass the other eggs i have in my egglock worked its only this egg and some other that give me this error. how do i fix it? or should i just put them in the pc and never touch them again?