Putting the calibre library on a NAS is known to cause problems and is specifically not supported. Many NASes cannot correctly deal with calibre's moving folders around when authors or the title change. The fact that it worked for a while was accidental.
See
I am getting errors with my calibre library on a networked drive/NAS? for more information.