Windows is doing this because your drive is bad. It knows its bad and it is trying to fix it, but Windows hasn't a clue how.
To verify your drive is failing, you can use one of these diagnostic utilities:
https://www.techspot.com/vb/topic7602.html
If your data is at all important to you, back it up to another drive or media IMMEDIATELY. Complete drive failure could be months from now or in 3 minutes. It's important you get this resolved.
If your drive is under warranty (Minimum drive warranties are a year, usually three years and as much as 5 years for some), you should definitely get in contact with the manufacturer and get a replacement.