Extenal storage unstable

Hello,
I have external storage shared with smb and it goes in and out of availability.
I run nextcloud vm on VMware and my external storage is on freenas
Can you help?
thank you
elie