Solution
This issue can appear if the computer momentarily goes to sleep due to its power settings. You can change this settings by going to your windows control panel.
Go to Windows Settings>>System>>Power & Sleep and under Sleep, set both of the drop down boxes to "Never" as shown below: