I accidentally left the screen pressed all night and in the morning the touch screen didn’t respond

Previously, it had happened to me that I would fall asleep with the cell phone in my hand. In the mornings, everything was normal, but after updating, I found this big error

I had to force an emergency shutdown (press volume up, volume down, and the power button simultaneously), and when I turned the phone back on, it was working normally using touch.