When tries to open website record in the Netsuite below shown error is shown,

To solve the issue try following step:
- Navigate to Commerce > Hosting > Domains
- If you would be able to access, then open a Domain record.
Note: Prefer a non production domain if any. - Click Save (i.e. Just save it without making any changes)
- Navigate to Website Setup record again and verify if the error has gone.