Xbox shutting down

Within a few minutes of playing, I get a total shutdown of the console. I have an Xbox One X with external hard drive. When I start the console back up it says it overheated. This is the only game I have ever had this happen with. I can literally turn on the console, load up the game, play for maybe 5 minutes and it will shutdown. It is frustrating as hell. I like the extreme little that I have seen of the game.