Was the custom image created on a VM, without AAD support?
"The VM used for taking the image must be deployed without "Login with Azure AD" flag. During the deployment of Session Hosts in Azure Virtual Desktop, if you choose to add VMs to Azure Active Directory you are able to Login with AD Credentials too."
If so, there may have been issues because the AAD integration may have been been configured on the original build and causing issues.