Hi
Check thermistors wiring and the temperatures displayed.
A broken/ shorted wire or way off temperature values mid-print would cause Marlin to kill the print.
Moving parts can cause intermittent faults in wiring that can be tricky to trace.
Marlin will also kill the print if the temperatures weren't rising as expected, ie from a wiring fault to the heater or bed.
There are settings to tweak in Marlin for this but If it worked before then probably hardware not software related.
Ed