Hi, I am Dave, I will help you with this.
Most likely you did not have a virus, it was just an unstable operating system caused the original problem, and rest assured malware cannot survive changing the drive.
1
Did you install a full set of drivers after you re-installed Windows from the support page for your PC?
2
Your system seems to be still unstable, what method did you use to re-install Windows, did you use a newly created bootable USB created with the official Media Creation Tool?