First, make sure you have iTunes 4.7.1 or later. If you have an earlier version of iTunes, update to the latest version and try syncing again. If the issue remains, then continue with the steps below.
To check the version of iTunes:
Macintosh: From the iTunes menu, choose About iTunes.
Windows: From the Help menu, choose About iTunes.
If you are aware of any problematic photos within the folder or Library being synced, try removing them and try the sync again. If you're not sure if you have such photos, try syncing smaller subsets of photos until you identify the photo that is causing iTunes to quit.