In order to enable sandbox mode Windows Defender, you’re going to need admin rights. You’re making a modification to Windows Defender which isn’t something you can do with normal user rights.
Open Command Prompt with admin rights. Run the following command to enable sandbox mode. setx /M MP_FORCE_USE_SANDBOX 1