This is the most solid way to fix the issue running Enable-OrganizationCustomization:
Update to the latest Powershell module, at the time of writing the latest version is EXO V2 2.0.6-Preview5
Run the following commands on elevated/Administrator Powershell on your LOCAL COMPUTER:
Install-Module PowershellGet -Force
Update-Module PowershellGet -Force
Install-Module ExchangeOnlineManagement -Force
Set-ExecutionPolicy RemoteSigned -Force
Install-Module -Name ExchangeOnlineManagement -RequiredVersion 2.0.6-Preview5 -AllowPrerelease
[Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor [Net.SecurityProtocolType]::Tls12
Install-PackageProvider -Name NuGet -Force
Install-Module -Name PowerShellGet -Force -AllowClobber
Now sign in to the Microsoft 365 tenant:
Connect-ExchangeOnline -Credential $UserCredential -ShowProgress $true
Ran the command:
Enable-OrganizationCustomization
Then run the command Get-OrganizationConfig | fl isdehydrated
The status that you want to see is IsDehydrated : False
Works perfectly!