FilFolio can take a long time to process many images.
If you get impatient and start doing things in Portfolio while processing is going on - like switching between catalogs and galleries, editing records etc. - then FilFolio can become confused and throw up an error.
To prevent this happening, do not do anything with Portfolio once you have started processing.