Can you try if this works for you:
- When the dialog shows in shotwell, unmount the device in Nautilus
- Click ok on the dialog
- Switch to a different Section in shotwell
- Switch back to the camera
This seems to work for me in Debian 11. I don’t know why on Debian Shotwell does not offer to unmount the device itself.