Or anyone else who has this problem or reads this on this thread, which is not the correct thread for this question by the way, here is a link to the forum for that. It could be any of a number of issues including overheating, Portland elation, or infestation, among others.
Xbox One turns on then turns off after a few minutes