I can't answer as to whether this applies to YOUR drive.
You can find the WD drive utilities for Mac here:
Find detailed answers to your support questions for your Western Digital, SanDisk, WD_BLACK, or WD storage product.
support-en.wd.com
If the drive has encryption protection or something similar on it, you can probably use the WD utilities to REMOVE such protection. After doing that, you should be able to "operate upon it" using disk utility.
Having said this, sometimes folk miss a very important step in using disk utility.
That is, you should go to the "view" menu, and choose "show all devices".
You may need to do this,
to see the actual physical drive -- instead of the "logical partitions" that are ON the drive.
Can you try this now?
- connect the WD drive, let it mount on the desktop
- open disk utility
- go to the view menu and choose "show all devices"
- look at the "list on the left". Can you now see the "physical drive" itself?
Take a screenshot of disk utility, and post that here, so WE can see it.
If you can see it, click erase.
What you format the drive TO depends on what it's going to be used for.
If it's going to be used for a time machine backup, or for CarbonCopyCloner or SuperDuper, it should be formatted to APFS.
HOWEVER... if the drive is going to be used for DATA ONLY -- not a tm backup or boot drive -- then a platter based drive will work better if you format it to HFS+ (Mac OS extended with journaling enabled, GUID partition format).
If NONE of this works...
Do you have a PC running Windows available anywhere?
If so, connect it to the Windows machine, and see if it can be erased there.
If you CAN erase it on a PC, take the now-erased drive BACK TO MAC and try again to erase it to a Mac format...