If DoctorOhh' solution doesn't work, you could start with a new library
In preferences adding books check ignore duplicate formats
add the books to the new library using the second option
It may take an hour or two, but you should have a clean library.
Doctor Ohh's solution is probably better though
Helen