I have had the same issue after only 3 days of usage (1TB SSD). I am using a MacBook Pro M1 (2020). I tried various different cables with no luck. Unfortunately I do not have any other device to connect to. Despite these circumstances, I have found a solution that has worked for me.
- Open the Terminal app
- Type in
diskutil listand press the enter key. This took a few minutes for it to load, but you should eventually see a list of different volumes, identifiers, and their sizes. In my case, I was looking for the identifier whose size was 1TB (the total size of my SSD) - I found it under
/dev/disk4 (external, physical):. Note that the Finder does not detect and display my SSD, but I can see it in this list. - Now that I know the identifier of the faulty SSD, I enter a new command in the Terminal:
diskutil repairDisk /dev/disk4(yours could be some other/dev/diskX, in my case it was/dev/disk4) and press enter - I got this warning check before proceeding:
Repairing the partition map might erase disk4s1, proceed? (y/N). I replied with Y (please take caution as there is a risk of erased data, in my case, thankfully no data was erased) and press enter - The repair was complete and I can now see my SSD in the Finder app.
I hope this issue helps you as well