I had this same issue. The root of the problem seems to be your (by your I mean you the reader in general and not just the O.P.) system having multiple devices that fall under camera/microphone. For example someone here mentioned having a bluetooth device with a microphone that they removed as having solved the issue for them.
In my case, under device manager I have two devices under cameras: the regular camera and an IR camera/sensor. After disabling the IR camera I stopped receiving the error.
So with that being said the solution I would suggest if none of the other suggested solutions worked for you is to check to see if you have more than one camera and/or mic sensor, then try disabling whichever ones you don't need.
Something to point out though, this issue only occurred on Messenger with Chrome. Messenger worked fine in Edge and and a a call in the web version of Skype worked fine on Chrome. I didn't try other browsers but based on that it seems that the issue is specific to Messenger on Chrome (or perhaps Chromium based browsers).
