Sops-install-secrets: manifest is not valid

Since a few days I encounter a strange problem. If I run nixos-rebuild switch I get the error

error: Cannot build ‘/nix/store/38wk315grwyl2cdrs5y78k35nqslz8l9-manifest.json.drv’.
┃ Reason: builder failed with exit code 1.
┃ Output paths:
┃ /nix/store/xzl0m36v0b6blarz004inbqlcydjb3b2-manifest.json
┃ Last 1 log lines:
┃ > /nix/store/4ycz89jl2df5kcqq0ix4xqpkzq4acbhf-sops-install-secrets-0.0.1/bin/sops-install-secrets: manifest is not valid: cannot parse yaml of ‘/nix/store/693szcwwddwvrddrsnqbcg9rpizi7nkb-0r42qnwbm8jykm05jp9wxv8frpd3i4fi-source/secrets/secrets.yaml’: yaml: control characters are not allowed

However, the command succeeds without any errors if and only if I run a nix flake update before.
How can I start debugging the problem? I already recreated my sops secrets.yaml from scratch.

Check it with a validator anyway. And check the full path in the error message too.