It’s not the terminal that was the issue: it was a hardware / file system issue and can be compared to removing all tires while driving a car: that will make it come to a screeching halt as well.
The terminal was the symptom (fever) but the illness was the NVMe drive (flu).
Therefore, please perform a:
sudo smartctl --all /dev/nvme1
and report back so we can check whether it was just a glitch or if your NVMe is about to fail…
Also, take a full system backup ASAP if you haven’t already done so: