Make sure that your DNS namespace and AD domain name match (create a new DNS zone).
Otherwise you'll need to implement disjoint namespace.
More at https://learn.microsoft.com/en-us/windows-server/identity/ad-ds/plan/disjoint-namespace and https://cyberjohnwickcom.wordpress.com/exchange-servers/exchange-server-2013/configure-disjoint-namespace/
If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.
hth
Marcin