When WD My Passport shows you an error and you can't access the data, don't worry, as the files can be easily rescued.
How to Access, View or Recover Data from Inaccessible WD External HDD
I tried to eject the drive and reconnected it for the second time, but the error is still there. I wouldn't do that because data is still there. "When I connected my 1TB WD My Passport external hard drive to my desktop, Windows 10 prompts me with an error message saying you need to format the disk before you can use it.