I also have this issue and am on my third i5 Surface Pro 7 (the first one just stopped working completely, the second one stopped connecting to type covers and damaged the original type cover). Both the second one and my current one had this camera issue, but it's usually infrequent enough that I would just restart. However, that is really, really annoying and should not be considered the solution.
I'll add that I was a big Microsoft supporter in the past and love the Surface Pro as a concept, but all of the hardware issues on this are just disappointing and it's made me skeptical of future MS hardware.