Sleep mode problems related to network access can be caused by other users waking your Mac remotely. To prevent this, go to System Preferences, navigate to Battery or Energy Saver, and disable the wake for network access option.