This may occur if you have the antivirus software “Bitdefender” installed. Bitdefender may try and block access to your camera.
This feature can be turned on and off globally from Bitdefender’s settings, or else application-specific rules can be created.