How old is the PC? It might be that the CPU needs a lot of time running YouTube when your security program is updating and installing. It might seem to be doing nothing at the time but leave it for half an hour or so to see if back to normal. Under powered possiby.
What is ransomware and how do I protect my PC from WannaCry?