To keep a Windows PC from sleeping open Control Panel|POWER OPTIONS and in the Balanced section click on "change plan settings." Set PUT THE COMPUTER TO SLEEP to "never." Change it back when you're done.
Video editing is resource intensive. You didn't mention your PC's specs: space open on hard drive, CPU, memory, etc.