Generally speaking having your library on a NAS is not a good idea. See
Do not put your calibre library on a networked drive in the calibre FAQs.
If you dig through the posts here, you will find quite a few of the "I've kept my library on a NAS/cloud storage/etc. for years and now I am getting errors/can't add books/can't send books/whatever" messages.