Avast Premier License Error on Windows 7 pro

I redid windows 7 pro after having windows 10. I have the avast premiere and have 1 license left for clean up section yet when I try to use code it says I’m out of licenses. I deleted old PCs and restarted PC. I tried clicking on activate and it says unexpected error. Everything is up to date. So what gives?

The activation code can only be used a few times, after that you need to use the license file.
Check your avast account for it.