How to Set a Short User Password in macOS Mojave and Later (10.14+)
You can also use the much more straightforward command:

pwpolicy -clearaccountpolicies


to remove the 4-character requirement for all users.  The man page gives other useful examples if you want to change the policy on a per-user basis.