I am no expert, but I will try to help out. I have the same system and the error you mention occurs occasionally. Reboot your system and then wait for the error to appear. Now just leave your system alone and it will fix itself. It could be some timing issue, in my case I was too impatient and just started clicking the buttons. But time after time I just leave it for no more than 5 minutes and it fixes itself and Avast runs perfectly afterwards.
But there was a time I had one go beyond 15 minutes and that was not good so I followed the uninstall/install procedure and same thing occurred, but it fixed itself after a minute or two. Make sure to use the Avast Removal Tool located here in the forums
So try those two ways and see if that helps out.