How to remove "Allow this device to access photos and videos" notice on Windows/PC
I saw this question but I cannot reply.
To resolve this you can open Device Manager and search for Portable Devices/Apple iPhone. And then disable this device.
Iphone will still charge, but pop-up won't come again.
iPhone 14 Pro