A low-level format normally takes care of those bad sectors as virtually all modern hard drives have the ability to swap out bad sectors due to a number of "spares" available in the drive.
The drive should have come with a low-level formatter. If not, one should be available from WD's WEB site. If they do not provide a low-level formatter, then I would never own a WD drive to begin with. All drives can develope errors over time.
If a low-level formatter is not available, the only recourse is the Microsoft partion formatter, which might not catch the errors. If they are hard errors, it will catch them, but it usually misses soft errors that the low-level formatter should catch.