I recommend backing up your files and reinstalling macOS.
You need another Mac to do it, and a Thunderbolt cable. You can buy a Thunderbolt cable at your local Apple retail store.
- Connect your Macbook to your friends Mac using the Thunderbolt cable.
- Turn on your Macbook in Target mode. You do that by turning it on, and immediately holding on T on the keyboard. It will turn on with a Thunderbolt logo jumping around on the screen.
- Your Mac's internal disk drive will appear on your friends Mac as an external hard drive. You can open the hard drive and copy all your files over to a safe place like a USB hard drive before you reinstall macOS.
Now, follow this guide to reinstall macOS.
How to reinstall macOS - Apple Support