Just switch to streamlabs, worked for me
^^ banned for a reason
you should post a pic of your obs settings. if obs says "encoding overloaded" in the bottom left when it lagging then its definetly your settings at fault.
I fixed the problem.