You should update your post with the actual model of enclosure you are using, you mentioned it's a Western Digital 4TB but what's the model? Maybe you're referring to a My Passport Ultra 4TB (?) since those have encryption but that's just a guess.
How easy is it to remove the hard drive from the enclosure and install it into something else for testing? If feasible could be a first step to determine if it's an issue with the drive enclosure vs the drive itself. (keep in mind I'm asking without knowing anything about the enclosure you're using so it may/may not be doable)
Is the entire thing plugged into the computer via USB cable? Try swapping USB cables just to rule out a cable issue, maybe it wasn't that great and you moving it around made it worse.
Do you know what type of drive is inside the drive enclosure? e.g. a 2.5/3.5 HDD, or a 2.5 SSD, or a M.2 SSD stick.
If it's a regular HDD, not SSD, then it's possible you accidentally moved the drive enclosure before the drives actually finished spinning down during power off. I've lost a external drive that way.