A Mac that crashes or crawls since last week leaves you guessing whether it is macOS or something you added. Safe mode helps you split that question in two.
On a Mac with Apple silicon:
1. Shut down, wait 10 seconds
2. Press and hold the power button until "Loading startup options"
3. Select your startup disk
4. Hold Shift and click Continue in Safe Mode
Safe mode starts with less software loaded and does some checks along the way, so it is slower and the screen may look a bit off. That is expected.
Then try to reproduce the problem. If it is gone, I would suspect login items, extensions or something installed recently. If it is still there, look at macOS itself or the hardware.
To confirm that you really are in safe mode, hold Option, open the Apple menu and choose System Information, then look under Software: Boot Mode should read Safe. A normal restart, without holding anything, gets you out again.
Intel Macs use different keys (hold Shift while starting), so don’t copy these steps there. And a problem that disappears in safe mode only narrows things down. You still have to find which item it was, by removing them one at a time.
Further reading: Start up your Mac in safe mode
Going deeper: Guide: keep your Mac apps in a Brewfile, so a new MacBook is one command away