My Mac starts up normally, but when I enter my password on the login screen, it freezes with a spinning beachball.
I am unable to access it due to this problem. How do I resolve this issue?
Try starting your Mac in safe mode by holding Shift key right after pressing the power button. If that works, you can at least back up your files and we can try to find a solution from there.
You can find more details on safe mode in the Apple support article, Use safe mode to isolate issues with your Mac.