Oh crap. That info is saying there is an error in the error handling routine. That is a bug. I took a look at the source code and I'm not sure what might be happening. I'll consider how to make this more robust.
Meanwhile, the original error is being masked by the second one. The best thing you can do now is to temporarily move all of your media objects to another directory, then synch with all options checked to make sure it works. Then start moving directories in one or a few at a time, resynching each time. Eventually, if an error occurs, you'll be able to quickly identify which file (if any) is the troublemaker.
Keep us updated as to what you find - I want to make GSP as robust as possible so I would like to learn from your experience.
Roger Martin
Creator and Lead Developer of Gallery Server Pro