Have you stored something important on this drive?
If you have, you’d better firstly restore your data back for free
with the help of a free hard drive recovery tool and then format this drive to see whether it could work well again.(Don’t worry! My brother has tried this freeware to restore all his files back. Most importantly, it is free. Just give it a shot.)
If you have nothing important on this drive, you could directly format it or just take this opportunity to replace it. PS
: In case of similar troubles, you are supposed to run the anti-virus scan regularly and make data backups all the time.