Reboot while holding command-option-r (all three at once).
Login with your wifi password when prompted then wait for the recovery utility to load.
Then start Disk Utility and select the drive itself at the very top where it says APPLE SSD. Then erase to APFS.
Then quit Disk Utility and reinstall the OS. That should get you back up and running.
Learn how to use macOS Recovery on an Intel-based Mac.
support.apple.com