I tried this awhile back with a friends G1 with the same issue. Download an app such as Dropbox from the Play store:
https://play.google.com/store/apps/details?id=com.dropbox.android
Login and set it to auto add pictures. It will add them all from your SD card.
It was strange that it uploaded pics that were not visible on the device but nothing ended up being lost.
Your SD card may be approaching end of life also.
Hope this helps