If it's new, then RMA it. If you can RMA it, and it's an SSD inside, you might want to consider making sure it's not fraudulently labeled
with a utility like Validrive (Windows) or F3 Fight Flash Fraud (Unix systems like MacOS -install with Brew or similar - or Linux - use your distro's repository). It's also been known that sometimes even name brand SSD firmware can be buggy and result in a dead/bricked drive once it reaches half full, so this kind of utility might detect that kind of bug.
If it's out of warranty then you can at least try Testdisk. However, it's likely this is dead hardware, in which case most software solutions won't work, or at least not such that the drive can be reliably used in the future.
Taking the drive out of the case probably isn't going to work as most external USB connected drives these days are hardwired directly to the USB connector. That is, there isn't a separate host bus to SATA or NVMe converter like you'll find in some older external hard drives it's built into the drive's control board (in some cases with old IDE hard drives you may find the internal drive is an IDE drive connected to a separate power and data bus where the controller sits: computer > USB host controller > USB cable > USB to IDE translator/adapter > IDE cable > IDE hard drive with a separate 12/5 DC power connector because USB v2 can't provide enough power to spin up a 12 volt spindle motor. This generally hasn't been the case for 2.5" laptop style USB drives for years now, however).
Edited by h_b_s, 20 January 2024 - 10:22 PM.