Sculpfun S9 workspace X,Y axis setup

These indicate what your laser controller believes is the worksize of your laser in X ($130), Y ($131), and Z ($132). You don’t have a Z so that can be ignored.

So your workspace size should be 410x400 mm.

However, in Device Settings you have the workspace size set to 410x420 mm. So you have a 20 mm difference which could lead to crashes.

Change the size in Device Settings and retest.