Octoprint website lag when using webcam

Camera model
OV5647 sensor

What is the problem?
When I "Enable webcam support" and go to the Control tab, octoprint laggs. I'm using firefox. However the issue is still persistent when using Chrome and Edge, I've tried on mobile, on window and on PopOS.
The browser slows down the longer I'm on the page, more then 3-4 seconds and the page becomes unresponsive.

What did you already try to solve it?
I've tried fiddling with the different webcam settings, but none seem to be saved. I've also tried going from "camera_raspi_options="-x 1920 -y 1080 -fps 10"" to "camera_usb_options="-r 1920x1080 -f 30""
And changing "camera="raspi"" to camera="usb"". The issue with this is the camera feed gets extremely blocky, as if the bit rate is complete crap.

Logs (/var/log/webcamd.log, syslog, dmesg, ... no logs, no support)
webcamd.log is 137mb long so I just pasted the last 100 or so lines of text. Can upload to a file sharing site if necessary.
webcamd.log: https://pastebin.com/e2GVqw68
octoprint.log: https://pastebin.com/MBf9P6rL

Additional information about your setup (OctoPrint version, OctoPi version, ...)
RPi 3 B+
OctoPrint v1.4.0