Z flip 5 main screen spontaneously stops working

Hi!
About six months ago, I got my hands on a used Samsung Galaxy Z Flip 5. All the phone needed replacing was the exterior 'flex window' screen. After fixing it, the phone worked perfectly fine for some months until after leaving facing flat down on the carpet overnight, the main screen gave up. I was able to get some glimpses of life when opening the phone for just an inch but opening it any more than that would cause attracting all over the screen until it went black. Now it's almost always off. When opening the phone, I noticed a little bit of buildup of white dust, and the phone has been tampered with, because some screws were missing from the top metal bracket. I used some screws from the earpiece part and replaced those with old Note 8 screws I had lying around to keep it together at least or now. (Not my brightest idea).
I'm thinking of replacing the screen, but I'm not sure if what's the actual issue with it, as the touchscreen works perfectly fine when connected to a monitor. I don't want to get a new screen and realize some other thing is wrong.
I'm adding some pictures here if it helps. Thanks :)

Block Image
Block Image
Block Image
crwdns2934089:0crwdne2934089:0 crwdns2934093:0crwdne2934093:0

crwdns2934109:0crwdne2934109:0

crwdns2889612:0crwdne2889612:0 0
crwdns2934285:0crwdne2934285:0