I’ve experienced some weirdness in the past too on sending gcode to workspace, but I thought I fixed the bug. It sounds like it showed up again. Could you try just cutting/pasting the Gcode via clipboard? Copy the Gcode from the textbox and then paste under the File menu.