macOS crashing every time I try to run a game
when ever I try to run a game not 10 seconds into it everything freezes and I can't even force quit I either wait for it to restart itself and get bugged audio or I hold the power button and shut down my laptop it started happening after I updated to macOS Monterey I've also erased all content on this laptop (twice now to see if it would fix the problem) but nothing I would appreciate all help, many thanks in advance
MacBook Air (2020 or later)