1. don't ignore pinned post in this forum when asking for help/support (link in my.sig)
2. this is technical, so details are required... like Win10 or 11, etc.. Win11 24H2 is well-known to have lots of issues
3. beware random internet suggestions... lots of folks with NO idea what they are doing making recommendations (sometimes just click-bait, others showing something that worked for them, but not explaining or possibly even knowing the requirements/consequences/implications of their suggestions.)
Your issue could be your computer, Operating System (OS), other applications, OBS Studio settings, or 3rd party plugins (streamlabs being a particularly well-known PoS code quality plugin that pukes all over OBS Studio log and tends to make a mess of things in general)