How to overcome the "Certificates not issued" error

Hi
My website is https://statuesque-zuccutto-9feffe.netlify.app/
I recently added a new custom domain, but after adding it I realized that I had to create a cname, unfortunately I will not be able to create the record on the specific domain because it already has MX records that may be damaged if I put a CNAME.
The problem is that I am unable to remove the PRIMARY domain, I encounter an error message: You cannot remove primary custom domain while domain aliases are present
When I try to change the primary domain to another domain, I encounter an error: We’re provisioning a certificate for your site, you cannot change custom domains until that process completes

I would like to re-add a custom domain that will be the primary domain and it will be: www.atlasil.co.il
How can I do it?

I checked your DNS configuration and your concern. When you switched your primary domain from www.atlasil.co.il to atlasil.co.il, you will need to set up the A record for the apex domain.

The www subdomain is fine since it’s using a CNAME. But when you made the apex domain primary, it needed an A record pointing to Netlify’s load balancer IP: 75.2.60.5.

Also, base in the DNS check, there’s currently no A record pointing to the apex domain, that is why SSL provisioning and domain configuration are failing.
Just add:
Type: A
Name: @
Value: 75.2.60.5

That should resolve the issue.

Once the SSL will provisioned, you may switch back the primary to www.