Printer restarts after selecting gcode for printing

i have not heard of this issue before, could be an issue with the usb, have you tried sending the G-code to it via wifi. also before you try to print anything to big or important i recommend calibrating the E steps see the post below for details

Extruder Calibration a must