I suspect its over heating due to positioning.
All the new processors will just shut down the computer if they over heat. Get a CPU temp monitor to see whats happening.
It won't shut down in the shop because it will be sitting on a bench with good circulation and more than likely air con.
In the house rammed up against a wall with piles of books etc either side of the case is a different situation.