`ParamsCheck.pm did not return a true value` when running `switch-to-configuration`

I’ve been receiving a Perl check error when trying to switch to a new configuration.

Params/Check.pm did not return a true value at /nix/store/ir8rqkxsqh0ar3avlvhs2crn0zx2d2mk-perl-5.36.0/lib/perl5/5.36.0/IPC/Cmd.pm line 59.
BEGIN failed--compilation aborted at /nix/store/ir8rqkxsqh0ar3avlvhs2crn0zx2d2mk-perl-5.36.0/lib/perl5/5.36.0/IPC/Cmd.pm line 59.
Compilation failed in require at /nix/var/nix/profiles/system/bin/switch-to-configuration line 22.
BEGIN failed--compilation aborted at /nix/var/nix/profiles/system/bin/switch-to-configuration line 22.

The line in question in switch-to-configuration is:

use IPC::Cmd;

I’m not sure how to go about debugging this. I deploy using deploy-rs, and I’ve cleaned up previous profiles so I can’t rollback to another profile.