Linux is pretty bad at handling out of memory. In my old thinkpad T14 with Mint everything came to a halt when webpack gobbled up my 16GB of ram. Couldnt even move the cursor, stuff just got stuck hard