Olay, so I also had problems like in this post : Scan Issues - Marlin - Diode laser
so I decided to change that in my marlin firmware aswell. Now it just runs the whole engraving without trouble.
My best guess is that the delay on the pwm fan get’s to full and marlin’s build in “serial_joverrun_protection” kicks in somehow.