I was waiting a few days before commenting to see if this fixed it but, I found out my Java wasn't up to date and after updating I have yet to encounter this same issue. If I do I will report back so.
I deleted 1.21.5, reinstalled the game, reinstalled windows and none of it worked. I have since only been playing in vanilla Minecraft and the problem happened occasionally, but is now happening within a minute of logging in to a server and playing every time.
Crashing is the wrong term. The screen freezes on an image while the game continues to run normally behind the frozen screen. When I open an interface, my mouse shows up. I am still able to do everything normally, I just can’t see anything but the frozen image.
So, 3 days later and the problem has returned. Drivers are up to date, java is up to date, windows is up to date. The “crashing” happens within a minute of logging into a world.
Happened twice on a CurseForge client a few hours a part. So, I switched back to my vanilla client and now it happens as soon as I log in almost immediately every time.