Horizon keeps corrupting my mods

no matter I do, from formatting my usb to watching youtube videos step by step it always shows that the file I just modded is corrupted. is there anyway that you can uncorrupt a modded file or am I doing something wrong. fyi I am stricting going offline with this