Clear the WorldCat cookie and restart the browser. If the problem persists, contact OCLC Support with your library symbol and the steps you are taking that bring up the error or the search you are performing.
If the issue is occurring through the search widget see Why do I get the Error "There was an error while displaying your record." when I search WorldCat Discovery from the Search Box widget?