Please try the following, in order. Stop at the step where the issue is resolved:
- Reset your Mac's SMC.
Reset the System Management Controller (SMC) on your Mac - Apple Support
- Fans, keyboard backlight, status indicator, battery indicator, display backlight, power button, close/open the lid, sleep or shut down, battery doesn't charge, MagSafe indicator light incorrect status.
- Hold down the <shift><control><option> keys, and then, press the power button. Hold all of them for, at least, 10 seconds.
- Reset your Mac's NVRAM.
How to reset NVRAM on your Mac - Apple Support
Resets sound volume, display resolution, startup-disk selection, time zone, & kernel panic information.
<option><command><P><R>
- Boot up your Mac in Safe Mode.
Try safe mode if your Mac doesn't finish starting up - Apple Support
Use safe mode to isolate issues with your Mac - Apple Support