How how about keep a list of packages that encountered errors during resolve, and remove them afterwards?