How to repair error filled hard drive. I am using it back with my Tablo

This work perfectly for me so I didn’t have to buy a new hard drive that had failed.