Apple has determined that a small number of iPhone 8 devices contain logic boards with a manufacturing defect. Phones affected with the problem may experience unexpected restarts, a frozen screen, or won't turn on. To resolve this issue, the company has implemented a logic board replacement program, which is free of charge.
Apple launches free iPhone 8 logic board replacement program