I am assuming the problem is your ram runs out of memory. And Linux kernel’s OOM killer is too slow and doesn’t kill processes earlier. You have two options to try:
- install earlyoom to kill processes earlier so the laptop doesn’t freeze
- add zram to virtually double your ram
or you can use both options to get the best of you laptop




I was in doubt. But now I am convinced it will do it?