Since the issue pertains to the Camera app, the first thing you should do to remediate this is to run the Camera troubleshooting utility. You will find the option for this in the Windows Settings.
If your Camera is not working in a virtual machine in Hyper-V or VirtualBox, and you see a black screen or an error stating ...
Some results have been hidden because they may be inaccessible to you
Show inaccessible results