Thanks to Lorenzo's comment to another user about a similar issue, I have managed to find something that affects the issue. Changing these values in Linux can impact the amount of errors I see in the console. With something low like 10000, there is a vast increase in the number of errors. I have increased it to 500000 for default and 1000000 for max, and it seems to have solved most of the problems. Do you have any idea what I should set it to for maximum performance in Janus? Why does Janus not use the maximum value when it's needed? I tried only increasing the maximum value, but that did not fix the problem. The default value was the one that needed to be changed. I don't know if changing this value can have other harmful impacts on the system, however.
The default for me was 262144 for all four
# sysctl -w net.core.rmem_default=500000
# sysctl -w net.core.wmem_default=500000
# sysctl -w net.core.rmem_max=1000000
# sysctl -w net.core.wmem_max=1000000
This was with 50000 kbps H264 video at 1080p 60 FPS. I will have to run other tests and report back with whether or not this fixed the other high bitrate issues I have encountered before.