it could be a problem with the power supply. The 2 events could be coincidence and not connected. Open the case and check for hair and fluff and that all fans are rotating - the lock up could indicate an overheating fault.
iPhone X review
How to find a font: Discover the name of a typeface with these apps
The best iPhone for 2017
Comment créer un compte PayPal pour payer en ligne ?