AmongUsCharacter overwrites data.raw.character.character animations with just one variation, so trying to access anything but data.raw.character.character.animations[1] will fail. I'm collaborating on that mod, and will upload a fixed version shortly (already posted a hotfix on its discussion page, but there are some more things I want to rework). However, to be on the safe side you probably should check on your end that data.raw.character.character.animations[2] exists before trying to change something below that. You just can't take anything for granted when other mods come into play! :-D