See the reason here:
To me it often fail if I switch to another window (like Chrome) when a video is exporting. Never fails if I don’t use the computer for anything else while Shotcut is exporting. The videos are always ok, so I don’t mind about that little glitch.