What exactly happened/what was the error when you tried:
Go to https://support.microsoft.com/en-us/surfacerecoveryimage
(with a different Windows computer if yours is not working properly)
and download a recovery image for your Surface. You will need a 16GB or 32GB USB stick (also called a flash drive) formatted FAT32 (use a Windows computer). You can't use an actual external USB hard drive for this and don't use anything larger than a 32 GB USB stick. Best to purchase and use a new, previously unused USB stick for this. Use FULL format and not quick format and give the volume a name like surfboot. Unzip/extract the recovery zip to the root of the formatted USB stick.
There are full instructions and a video at https://support.microsoft.com/en-us/help/4023512/surface-creating-and-using-a-usb-recovery-drive#download
Does the Surface Data Eraser detect your SSD? To check, try the Surface Data Eraser; documentation is at https://docs.microsoft.com/en-us/surface/microsoft-surface-data-eraser the download itself is at https://www.microsoft.com/en-us/download/details.aspx?id=46703
Here is what it may look like when you run the tool and the SSD drive has failed
If the Data Eraser finds the drive and completes successfully, try the recovery image again.