|I don't understand your method of repair.|
Get the drive fitness utility from the manufacturer of your drive.
If you truly have many bad sectors and the program is marking them as bad then you should replace the drive if the capacity is getting smaller.
Manufacturers build extra capacity into the drive as spares. Once those are used up then you are notified of additional bad sectors.
The bad sectors might be caused by improper shutdown while the disk is writing. If that is the case then the scan program can repair them and will tell your that.