Reinstalling the webcam driver probably a good solution to fix the problem.
On the confirmation pop-up, click on Reset to confirm.This will open a new window with the option to reset the camera app, click reset.In the right-pane, scroll down and click on Camera then Advanced options link.Right-click on the Windows 10 start menu select Apps & Features.Let’s reset the camera app to its default settings that probably help fix the problem. It’s quite possible the error message is caused because of a software glitch or a bug in the camera app. Select the radio button next to Turn off Windows Defender Firewall (not recommended) under both Private network settings and Public network settings.