UGS has a built-in function that can skip lines or text in the gcode file. If you're seeing errors when running g-code files, check to add or delete the list of commands UGS is skipping.
The below dialog box is found in the menu Machine>> Options.
Please click each of the items in the area with the red arrow and then click the “remove selected” button until the text box is empty. It is not enough to check the boxes, the lines need to be deleted.