Video stops after several minutes

Some people using a NAS are finding they are more reliable when mounted to the system rather than through Kodi. I would recommend creating a system mount for one of your shares and then use the file manager (in settings) to play a file from this new mount. If this fixes the issue then I would recommend adding system mounts for all of your paths and use a path substitution to automatically redirect your paths without having to modify anything in your library.