You talk about gcode, are you putting files on the sdcard manually and printing from the SD card or from Bambu Studio (BS) or from Bambu Handy (BH)?
I am a little confused as it appears you are saying you were able to create a gcode with the wrong target printer, this would rule out BS or BH.
Can you provide a step-by-step of what you did for clarity.