Apparently, some people have been having problems with the iPhone 8 shutting down, restarting, and going to a frozen screen unexpectedly. It has something to do with a defective Logic Board. Apple has created a repair program for iPhone 8’s with these issues. To see if your iPhone 8 is eligible go to this page and enter the iPhone serial number. If your phone qualifies, Apple says they will repair it free of charge.