If this happens when selecting and erasing the physical drive "Apple SSD SM0128G", then you may have a problem with the laptop's SSD. About the only thing left is to try a hardware based Secure Erase if the SSD supports it, but not all Apple SSD's support this feature.
Probably the easiest way to do this is by creating a bootable Parted Magic USB drive using Etcher (Mac/Windows/Linux). Option Boot the Parted Magic USB drive and select the orange icon labeled "EFI". There should be an icon on the Parted Magic desktop for erasing drives. Within the app there are several options to erase the drive. You need to select the "ATA Secure Erase" option and not the "long" option. Only the "ATA Secure Erase" will reset the SSD to factory defaults and maybe fix any odd issues with it. The "long" option will not reset the SSD and will just cause undue wear to the SSD and might make things worse. The ATA Secure Erase option should only take a few minutes to complete. Make sure to remember the exact password you use just in case the erase operation is not completed as you will need this password to disable the security lock on the SSD before the SSD can be used again. If an error is encountered, take a picture of the error message.
If the secure erase operation fails or is interrupted, then open a terminal app from one of the icons on the desktop or one of the menus and issue the following command (press the Return key at the end of the line):
sudo hdparm --usermaster u --security-prompt-for-password --security-disable /dev/sda
When prompted, type the exact password you used when performing the ATA Secure Erase (press the Return key after entering the password).
The last free version of Parted Magic can be downloaded from a mirror link from the MajorGeek's website here.