"The DataSourceID of 'TopNavigationMenuV4' must be the ID of a control of type IHierarchicalDataSource. A control with ID 'topSiteMap' could not be found."
Well, what you should do is to redploy it and reset all the sites that used the custom masterpage to a default masterpage, or do it from SharePoint Designer / Powershell if you knew what sites that used the retracted masterpage -- user19952 -- Follow this one.
To switch masterpage custom to default check this link
once it's done, use powershell to retract solution.