Smb2/3

If you want to stick to Kodi method than check out this thread

Alternatively change to fstab based mounting. If you don’t want to loose your library you can either use path substitution or export/import your library.