@jay_s_uk

Solved!

This is what I have done:

I updated the firmware to version 3.4.6 I grounded the hot-end with a wire to the ground of the power supply.

Side note:

During the last week when I was having the problem of the printer stopping midprint and resetting , I put on the heating in the printerroom.
The temperature was a convenient 23 degrees Celsius and the humidity had dropped to 45%,and that's low.
I can imagine that the low humidity has a negative effect on the buildup of static electricity causing the printer to stop and reset.
I'm not sure but I can imagine.....

@jay_s_uk : Thanks again and enjoy you're weekend.

Best regards,

Marc