So far system crashes reported in this forum were isolated to hardware defects (most of the time the PSU was at fault). You could try to limit the power usage of your GPU via nvidia-smi, if your device supports it, and rerun the script.