Why is my Windows 11 PC boot-looping?

When I got the PC it works perfectly fine for about 4-5 days no problem downloaded lots of large files, installed large games from steam no problem whatsoever then during another download on Steam my PC got a BSOD that says:

KMODE EXCEPTION NOT HANDLED

Restarted it ran chkdsk and other stuff it works again then I wanted to download again then I get another BSOD.

Now the BSOD says:

BAD SYSTEM CONFIG INFO 

I’m just wondering if its corrupted system file or bad RAM, or could be bad SSD?