the cpu might be getting too hot and the auto safety on the chip is cutting it off. see if the fan is clogged with dust stopping it working properly. only other thing I can think of is a faulty psu, this can cause all sorts of problems.
iPhone X review
Political cartoons in 2017: Chris Riddell, Rebecca Hendin and Dave Brown on what it’s like to…
The best iPhone for 2017
Tennis : comment regarder la finale de la Coupe Davis 2017 ?