HowTo troubleshoot desktop system locking up, presumably due to Mathematica

Mathematica and MatLab: Limit resource usage (ram, swap, cpu, tasks) in user land with cgroups and systemd.

Translate from german to english with a translator like deepl.com.

Check access to this looked up machine with root/admin rights on console (<Ctrl>-<Alt>-<F1>) over network (SSH) or over serial cable (terminal).