That error has nothing to do with the transfer command.
Most of the time this happens if a script has been added two times (please check all unnamed slots in the script editor).
If that is not the case, please try disabling your added scripts until the error goes away.
FYI:
I'm assuming the error happens because something on the new map needs the problematic script.
Either way, only an added script or manipulation of the default scripts can cause this error, it cannot be caused by anything pure default.