I had the same issue as many of you…
non-apple replacement screen … updated iPhone X A1865 to ios 16.0.2 and when I woke up I couldn’t unlock my phone swipe would not work and touch accommodations wasn’t the fix.
you can either buy a genuine apple OLED screen or disconnect the screen ribbon cables from the logic board and the battery cable. Plug in the two screen cables then the battery and that’s it. Very important that the battery is plugged in last
I don’t have one so I couldn’t try but there’s a device that’s supposed to calibrate your phone to your screen but most of us don’t have these.