I would suspect there is something going on with the SD card the iPad is not liking. Try to transfer all the photos to a computer which may be better at reading the card. Once you have verified all the photos are safely copied use your camera to format the card. This will wipe it completely and set it up again which can fix any formatting issue the card may have. If you see this issue again I would not trust it and get a new card.