I found a possible cause for this error, please check you Environment Variable "__PSLockdownPolicy" it should be a int not string,It is defined as
8 SystemEnforcementMode.Audit
4 SystemEnforcementMode.Enforce
other int value SystemEnforcementMode.None