Third-party apps like AM Deadlink will remove duplicates and check for broken links.

http://www.snapfiles.com/get/amdeadlink.html

Good only for Opera 12 or earlier — bookmark.adr file.

Then install Opera 20 again.