What macOS version are you CURRENTLY on? You might what to wipe the drive and reinstall from a usb if this continues to happen.
open