Computer hangs uploading by using platformio run -t upload

I like the module and it works fine with the platformio software on my Linux computer with c/c++. Unfortunately, however, from time to time it happens that my computer hangs while uploading the program. This is annoying, I have to shut off the computer and start it again.