Check that the edition supports it
Windows Sandbox is not available on Home. The edition string from DISM is the reliable check, and the optional feature list shows whether the sandbox is installable at all.
DISM /online /Get-CurrentEdition
Get-WindowsOptionalFeature -Online -FeatureName Containers-DisposableClientVM | Select-Object FeatureName,State
Get-ComputerInfo -Property HyperVRequirementVirtualizationFirmwareEnabled,HyperVisorPresent