I don't play games on my PC - since it's not a gaming one. However, though, my PC has overheated from being in a hot room. In that case, the fans come on. Well, luckily, that's all the happens. There isn't any damage done!
O.K., how to prevent this? Keep your computer in a cool room and/or use cooling fans (inside the computer).