Error when trying to change primary domain

Can’t set a primary domain on Hosting panel, it shows:

Oops, there was an error when trying to change the primary domain for http://www.we****er.co. (Internal Server Error: Please try again or contact support if the issue continues.)