Could indeed be from a faulty contact that is fixed when the system heats up. Does the same freezing happens when you just leave the pc idle after booting, using a browser or another game?