Webcam stops after a couple of seconds

Raspberry Pi 3 Model B Plus Rev 1.3
Camera model - Raspberry Pi NoIR Camera Module V2 - 8MP
Octoprint 1.42

Problem: Webcam works for a minute or so then changes to black screen with "webcam stream not loaded" message.
-Refreshing the page or switching tabs will bring the camera back up for a couple of seconds then back to black. (82.0 KB)

I'm having the same issues. It seems like something is stopping the webcamd service. I've read that spaghetti detective might have something to do with it. But I'm still looking for an answer.

I am not using Spaghetti Detective as it was way too expensive and did not work well with my setup. Unfortunately, I have just enough knowledge to get into trouble, but not to get out of it.