Click the Apple icon > System Preferences. If your Mac loads successfully in Safe Mode, try to uncheck login items in Users & Groups. Release the Shift to continue booting M1 Mac to Safe Mode, then try to uncheck login items.
Press and hold the Shift key while tapping the power button to restart your Mac.