If you encountered an unexpected error when trying to edit the
web parts or the site never loads, it means that your web part is corrupted.
You need to delete that web part from that site or page...
You can mark the corrupted web part and delete it here. You
can also do some other actions like Close and Reset. Closed web parts will have
“NO” on Open on Page column.
This tip/trick works on both SharePoint 2007 and SharePoint
2010