Chosen Solution

Recently changed the screen on the iPhone XR. Everything went perfect and switched over the original camera/sensors. Face ID is working and everything else is as well. Only issue is the screen will light up and then go back off randomly without receiving notifications or picking up on a face. Any suggestions?

I would try replacing the sleep/wake button or try cleaning the connector on the board.