No operating system given nor where files are stored even though this looks like an OS question. Based on the information I will guess that you are using Windows and the files are on a network share accessed through WiFi.
When Windows goes into sleep it drops the WiFi connection; on wake the connection is restored out of order and although you are connected to WiFi it doesn’t work so you need to restart the connection. Even if you don’t need to restart the WiFi connection, you still need to mount the mapped drive again. To do that just open File Explorer and click on the mapped drive to show the folders in the right-hand pane.
BTW, leaving Windows running non-stop and files always open will guarantee that oneday a restart will corrupt something. Keep doing those backups Cheers, Al