I think there is, don't remember exactly where.. Search Double tap on settings, that might help.. I believe I seen option like double tap to lock screen.. Is it happens when you double tap on screen too?
Edit:
I see you changed you changed display recently (it comes with touchscreen), it can be their problem too.. By the way how much it cost to replace the display
Sent from my POCO X2 using Tapatalk