Edit: So I had read too much LWN when looking at this. The kernel from the headline seems to be the Jupyter kernel rather than the Linux kernel that I had in mind.
It would seem impossible for PyTorch to crash a fully functional system (except by stalling it via swapping) in contrast to just PyTorch being terminated.
As I would recommend to try other computationally intensive workloads to see if something is wrong with your computer.
Best regards
Thomas