If a file still exists but the contents are wrong, restoring an earlier version is usually safer than scanning the entire drive.
1. Make a copy of the current file
Before restoring anything, duplicate the current file to a different folder. Even a damaged or incomplete copy may contain work you want later.
2. Check the app itself
Look for AutoRecover, version history, recent files, or temporary drafts inside the application that created the file.
3. Check OneDrive version history
If the file is in a OneDrive-synced folder, sign in on the web, select the file, and look for Version history. Restore only after comparing the available dates.
4. Check File History
If File History was configured before the problem occurred, search Windows for "Restore your files with File History," browse to the folder, and inspect earlier versions. Restore to another location first when possible.
5. Check other backup destinations
External-drive backup software, a NAS, and some security suites maintain their own version lists. Do not overwrite the current file until a restored copy opens correctly.
Official reference: Microsoft's Windows backup, restore, and recovery overview.