Hello,
I would recommend that you connect the drive to a Windows computer and write zeros on the drive using Data Lifeguard Diagnostics. For this, visit the article below:
Then initialize the drive, connect it back to your Mac and try to reformat it: