Let's execute following steps for this problem. Please update me once done.
1. Use the Hardware & Devices Troubleshooter
Type Troubleshoot in Windows Start Search box > Click Troubleshoot > Scroll down & Click Hardware & Devices > Click Run the Troubleshooter & follow on-screen directions > Restart the computer after troubleshooting is completed
2. Press Ctrl + Shift + Esc to invoke Task Manager > Go to the “Processes” tab > See which programs are currently running in the background of the system and If you found an app that uses Camera, end that program
3. Reset Camera app
Right click on Windows Start > Apps & features > Scroll down and click Camera> Click Advanced options > Click Reset > Restart your computer
Go to Microsoft Store > Click 3 horizontal dots on top right > Downloads and Updates > Check if there is any update for this app > If yes, update it.
4. Uninstall and Reinstall Camera app
A. Uninstall
Right click on Windows Start > Click Windows Powershell (Admin) > Copy the below command and right click in Powershell to paste > Enter
Get-AppxPackage Microsoft.WindowsCamera | Remove-AppxPackage
B. Reinstall
Right click on Windows Start > Click Windows Powershell (Admin) > Copy the below command and right click in Powershell to paste > Enter
Get-AppxPackage -allusers Microsoft.WindowsCamera | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register “$($_.InstallLocation)\AppXManifest.xml”}
5.Refer to this Microsoft help and execute the following steps
Check your antivirus software
Check for an outdated webcam driver
Roll back your webcam driver
Uninstall your webcam driver and scan for hardware changes