@secure If the first print completes without issue but a subsequent print fails, then logic would dictate that something in the first print end code or a post print macro, is changing a configured setting. It would be useful to know if you always home the printer before every print or only before the first one. If it's the latter, then possible causes are that the end code turns the motors off which will then lose the homing position. Another possibility is that positioning is changed from relative to absolute and that it is not being set to relative at the start of the sliced gcode file.
To get to the bottom of this, we'd need to see everything in the sliced gcode file up to the first move, and everything after the last move. If there are calls to other macros within those sections, we'd need to see those too.