Sudden drops in temperature curves like in your picture are usually missing readings on the thermosensor:
Disconnecting the sensor from the board registers as min-temp of the sensor while shorting out as max-temp, so it triggers the mintemp/maxtemp security protocol: shutdown.
One could disable mintemp/maxtemp protection, but that wouldn't solve the issue. The issue is usually the wiring of the sensor. To find the fault, put temperature on the sensor but keep the motors disabled. Watch the read temperature. Move the printhead manually and slowly. If it suddenly drops and throws the error, you might have a faulty lead close to the printhead. If not, you need to open the electronics box to check if the connection to the board is ok. In the worst case, you might need to exchange the whole temperature sensor.