Librem 13 overheating to the point of shutdown

Sounds to me like you don’t have enough RAM for those tasks. Is your SWAP partition active when you try those things? Are you trying those things simultaneously?

Try contacting tech support and follow their instructions.