There is no way to prevent this as the cause is not known... However, one can safeguard against this happening whether the cause is known or not. Simply make periodical manual exports of the keywords and or automated backups of the underlying keyword XML file. One can rebuild the keywords file by exporting keywords embedded in previously processed images.
... View more