The default disconnect time on Windows is 15 minutes. Although it will reconnect automatically when using it, it might cause the data to be corrupted.
You can disable this feature by opening the Command Prompt as the Administrator and typing the command below in the Command Prompt window.
net config server /autodisconnect:-1