Thank you. Damn that was obvious really!
Are you getting the same error? I also get it for user accounts.
Command used to disable using bash (iTerm2)... not sure what zsh commands are.
sudo spctl --master-enable
sudo spctl --master-disable
spctl --status