Google the error number to see if anyone else found a fix/workaround.
Turn off photo syncing, see if it works fine then.
Maybe rebuild your iPhoto library (hold alt & command while opening it) and it might sort out any corrupt images which could be causing the problem.