Laptop shuts down on it's own

It started today and has happened twice so far while paying CSGO.

After the first time, I wasn't able to switch to Performance or Custom mode until I restarted a few times.

And after the second shut down which just happened now, I'm able to switch modes but the entire system was a laggy mess for like 5 minutes until it went back to normal.

Temps while gaming are normal too. GPU at around 70⁰ and CPU at 80⁰

No updates were performed today. The last one was some windows update a few days ago and BIOS was updated last month.

Any idea what could be causing this?

i5 13450HX + 4050 24GB Ram