What you could do is download a tool to see if something is running too hot, if it's the cpu you might need to change thermal paste (in laptops) or if it is the gpu you might want to check if the fans are all still working, laptops really easily overheat when they are used for gaming. If you have a tower i would say check the vents and also look how your gpu is doing temp wise and if it's getting too hot you might want to buy an additional fan.

But yeah could be anything from faulty hardware to old drivers etc. so in the worst case maybe let a repair shop look into it, they often have more tools to check if something is wrong with your hardware.