I've had this where the extruder stopped heating for a few minutes, causing a gap, then spaghetti!

In my case, it was a board fault, with a dry joint to the heater socket. Never had this issue again since.