emerald293, your issue isn't linked with PATS initialization or smth similar. just issue with elm327 adapter or computer performance. on these modules type (SID206, correct?) PATS init procedure MAY be required only when to update to some calibration levels. if process gets stuck on memory erasing stage then it means that adapter just can't get an answer on erasing command, there is no about PATS. best way is to change your ELM327 adapter. also changing connection speed or USB driver delay could help.
one more point - if you was able to upload your original file then it means that modified file also can be uploaded. second point is whether it can be started after but it can be flashed into the module. seems that you equipment just works unstable.