Broken nix-env with manifest error and cant rollback

$ nix-env -iA nixos.papirus-icon-theme                                             
error: syntax error, unexpected end of file

       at /nix/store/5nfyyvn6zc5nyd4iz67irxx1szaxrhh5-env-manifest.nix:1:1:

im cant rollback because runing the commands

$ nix-env --delete-generations old
$ nix-collect-garbage

how to solve?

Tangentially relevant, even if it doesn’t solve your issue per se: https://stop-using-nix-env.privatevoid.net/

Anyway, you probably have disk corruption and should run a store repair.

How I can run store repair?

sudo nix-store --repair --verify --check-contents

(it takes a while.)