My guess is that you have your library on a network drive or somewhere under "cloud control", and formats are being lost. See the FAQ entry
I am getting errors with my calibre library on a networked drive/NAS?.
Run calibre's Library Maintenance / Check Library function to see what damage has been done.
EDIT: Just saw that you aren't actually missing the books. Good.