Printer restarting after heating done

i haven’t used my printer in a long time and after trying to start a print it heats the bed and nozzel, then does an auto home, then it moves the x right for a split second and then the printer crashes and restart, no error no anything, i have no idea what might be causing it.
i am using cura slicer if that might help, i have also tried some full control gcode and while it maneges to move the x almost to the center the printer restarts anyway.