Crypt error files

after we did the replication, it turned out that the encryption module was turned on and off earlier. files on the replica that were encrypted are not available.
files give an Unexpected server response (500) error.
what solutiuon can you propose to fix this?

nextcloud version 15.0.5