Usually, the oops message shows up when the HomeGroup feature is malfunctioning completely.
If you also struggle with a similar issue, c’mon refer to this article onMiniTool Website.
Among them, one will be your tailored solution.

Therefore, you’re free to try todisable antivirus programsfor a while.
good idea to start the antivirus again after finishing your file sharing.
Step 1: Go toUpdate & SecurityinSettingsand clickWindows Security, thenVirus & threat protection.

Step 2: Switch toVirus & threat protection settingsand clickManage controls.
After the issue is resolved, you might reinstall or re-enable it.
Step 1: Go toUpdate & SecurityinSettings.

Step 1: Open theRunbox by pressingWin+Rand inputservices.mscto enter.
Step 2: Right-click each service as following listed and chooseEnablefrom the menu.
After that, just retry your file-sharing.

Lets try this way.
Step 1: Open yourFile Explorerand locate theMachineKeysbased on the following route.
Youd betterback up your filesin case the data loss.
Then start your PC.
Step 1: Locate theMachineKeysfolder as we mentioned in fix 4.
Step 2: Right-click it and chooseProperties.
Step 3: Switch to theSecuritytab and clickEdit….
Step 4: SelectEveryoneand check theAllowbox beside theFull control.
Then clickApplyandOKto save changes.
Now, it’s possible for you to try your file-sharing with Peer Networking.
Step 1: TypePowerShellin the search box and open it as an administrator.
Step 1: Open yourServiceswindow and locate thePeer Name Resolution Protocol.
Step 2: Double-click it and switch to theLog Ontab.
Step 3: Check theLocal System accountand clickApplyandOKto save changes.
kickstart your PC and peek if the issue persists.
Come and give it a shot!