Xbox One X shuts down when matchmaking

This doesn’t happen all the time, but sometimes when a new multiple player game is starting then my Xbox completely shuts down. I don’t see a pattern to it. Sometimes it will go days without happening, and then it will happen a bunch of times in a row. I have tried uninstalling and reinstalling the game but that hasn’t helped. Has anyone else seen this issue?