Corrupted files after copying to Flashdisk

We found that disabling the trim function solves our copy issue (Windows Embedded Compact - iMX6 BSP Release). Is there a reason why the enabled trim function (default setting) corrupts some of our copied files?