Well, if you actually have a problem on your disk, that's a system error, and you'll need to correct that in your operating system.
What operating system are you using? Which processor do you have and how much RAM? How much free, clean, freshly defragmented space is on your hard drive?
Have you ensured that all of your photos have been resized to no larger than 2000x1500 pixels?