My laptop couldn't run OBS properly unfortunately, tried that one first.
I just press Win+G for Game Bar recording. I only use OBS if I need the whole screen.