Reinstall macOS. Restore from Time Machine Backup. Use First Aid to fix the startup disk. Check your hardware.