What's happening to your phone is that the delicate connections between the flat ribbon cable that goes to the motherboard and the electronic circuits etched into the touch screen have been damaged or corroded. As a result, it's allowing electrical noise onto the signal lines that are supposed to carry the touch inputs, and the motherboard is misinterpreting that random noise as screen touches.
Unfortunately, those connections are not repairable, so the only real solution is to replace the touch screen, AKA the digitizer. On your phone, as is true on almost all modern phones, the digitizer is fused with the OLED display and cannot be replaced separately, so you will need to replace the entire screen assembly.
On your phone the recommended way to make that repair is to replace the screen and the phone's midframe as one assembly. While it is possible to replace the screen without the frame, if you're new to repair replacing the complete assembly is the easier and safer way to do it. Sorry to say that iFixit doesn't have a guide showing you how to make that repair, but there's a Spanish site called Nadie Me Llama Gallina that has exactly what you need. Of course, it's in Spanish, but if you use the Chrome browser's translation feature, it is quite usable no matter what your native language is, and their guides are well done.
Manuals / Poco M4 Pro / Full Screen - Nobody Calls Me Chicken
crwdns2934105:0crwdne2934105:0
crwdns2934113:0crwdne2934113:0
crwdns2915270:0crwdne2915270:0
crwdns2889612:0crwdne2889612:0
2