This article explains how to repair a corrupted thumbs.db file.
Disable and Delete Thumbs.db Files in Windows [Solution]
Sometimes one or more of these corrupted files can cause problems in Windows when navigating folders with multimedia content. They can also be the source of error messages such as this kernel32.dll error:
Repairing thumbs.db files is a fairly simple task as Windows regenerates the DB file when the specific folder where the file is located is viewed in a special way.
Open the folder where you suspect the thumbs.db file is corrupted.