I get the same error message if I try and open an image file from the USB drive by Right-Click image file > Open with GIMP
I installed GIMP 2.10 with snap:
$ sudo snap install gimp
There's obviously something I'm missing in terms of configuration, but I can't find a similar question posted yet.
Any assistance would be appreciated.