See the solutions for CKKS-RNS Automorphism before key-switching leads to excessive noise and decryption failure and EvalAutomorphismKeyGen ModInverse index