I have found over time a couple of things about music files (and other media files) stored on NAS. As mentioned, you need the NAS fully connected to the network and not "asleep." This means your drives should be spun up already before iTunes accesses the NAS.
For me, most of my issues quickly went away when I created the default location for the media files on my local drive THEN went to preferences within iTunes it self and un-ticked the second option about copying files to the library etc. After this I merely did an "add to library" from Files. This translates to iTunes looking at the default library directory always AND the locations of the files found by using "add to library" which pointed to the NAS directories.
The second thing one can do is use a simple script to wake up the NAS then open iTunes and the last - include the directories for media files on your NAS in the start up of your system. Ideally, you'll see a folder on your screen that represents the NAS directory. When in doubt, you can click it and see if it pops open and that is the "proof" you need that your system can access those media files.
You might want to experiment with the above suggestions. For me, I simply use the first one and all is fine. If for some reason iTunes cannot find those files, they still exist in the library catalogue and I get a pop up warning.