This is rather mindblowing in that LabVIEW does not create any tdms~ files at any time. Are you using the DIAdem DataFinder? Or any other software that accesses the file?
Even if your application is aborted in the middle of writing, writing a tdms file should be finished correctly. The only way of actually corrupting the file would be a complete power out during hard drive access. With that said, there is a very small chance that e.g. crashing the application can get the tdms and the tdms_index file out of synch. In that case, try deleting the tdms_index file. Next time you open the tdms file, LabVIEW will generate a new one.
Hope that helps,
Herbert