can't transfer files from device to pc.
did you change the connection type to file transfer?
You can try cleaning your cable and charging port.
Try another cable.
Try another USB port.
Try rebooting devices.
No one can give you a solution only suggestions as this is something you have to figure out.
try to transfer file after unlocking your phone.
try to reinstall or update MTP in device manager in pc
Weekly Update 409 Never Want to Say Goodbye to The Holiday…
by Zeta.Z, 2021-10-15