Avoiding TM corruption?

How to avoid TMs corruption? If corrupted, is TM Repair the only available tool to try to recover its content?