For screen recording you need to pull data from the graphics card over PCI express bus. It so happens this is rather slow. In your case, you have only PCIe-3.0, not sure how many lanes.
It is possible that some process fires up and loads up PCI express bus, which interferes with recording...