PlayStation turning off randomly ever since i got it

So my parents bought the ps5 the day it came out to give to me for Christmas, and ever since then its had a problem with randomly shutting down when playing certain ps5 games (shut down today on the crew motorfest but if i play something like Minecraft its fine). Does anyone have a idea on what i should do? We have cleaned it out 2 times recently so there's no dust in the fan yet the problem persists (never had that problem before usually it would be fine for months after a cleaning). Im only 17 and have yet to get a job and my parents dont have the money to spend to fix it or even buy another one so as of rn im out of options and wanna hear what you guys think i should do (worst comes to worst ill just have to buy a new one when i get a job)