It appears you are having an xyproblem
you are mounting shares based on external device using a volatile location
That is going to create unpredictable issues with samba filesharing and as you don’t what you doing so you blame samba which is not your root cause
Your root cause is ignorance and windows expactations