It is sometimes possible to recover a file deleted by accident. Stop using the disk, check your Recycle Bin, and perhaps pull out an undelete utility.
Windows programs often make these oddly named files as part of their setup process. You’ll have to make sure they are not being used to delete them.
Compacting should be completely transparent. It makes files smaller and potentially makes access of email a little faster. There is one dramatic exception.