I don't have any experience with that version of OBS and did a quick search for lag issues related to it and didn't find anything specific.
Are you on Windows 11 by any chance? I believe there might be some built-in behavior that adjusts priorities of programs in that. I'm still on Windows 10 so I don't have experience with it directly but have seen it mentioned in passing before in the streamer space.