The same issue for me! MacBook Pro M1 2020 and the solution was plug the SSD using the original cable and a USB A -USB C adapter. Then I used the utility disk, erased the volume and worked!!!
Just consider that before all this great solution, I formatted my Mac and reinstalled macOS :(. Maybe that helped
[Por si lo requieres en español]
Tuve el mismo problema en una MacBook Pro M1 2020 y la solución fue conectar el SSD usando el cable original y un adaptador USB A - USB C. Luego usé la app Utilidad de Discos, borré el volumen y funcionó!!!
Solo considera que antes de toda esta gran solución, tuve que formatear mi Mac y reinstalar macOS :(. Tal vez eso ayudó