When processing a large image of 500x400 mm, the program freezes,

When processing a large image of 500x400 mm, the program freezes, a completely white screen appears!

There is an option in settings under gcode to increase the threads ( if your machine can handle more )