Xbox Series S going back to menu after a couple minutes of play

I have an Xbox Series S that after playing a game for a few minutes the game freezes and takes me back to the menu. I have reset it multiple times, installed OSU1. I have repasted with multiple different thermal pastes including grizzly kryonaut and PTM7950, changed power supplies, changed heat sink, changed fan, changed SSD. The xbox stays on and will run anything except a game. I am out of ideas on what else to change.