on windows 10, i don't have that problem, because by default today the OS is pretty robust against user-space programs halting the entire system. so how do you solve that on linux? change the program's priority, or "niceness". i want you to look up how to do that right now
if you tell me that the many different ways (default setting by user, wrapper script, renice after launch) in which you can set a program's priority in linux are accessible to anything below a power user, you are lying.