I've never heard of application that would cause a battery level warning (controlled by BIOS and/or Operating System) which then goes away when computer unplugged ??
unless you are failing to provide key details, like you are using a low Watt charger, and when OBS running you are drawing more power than your charger provides?? In which case, PEBKAC not with OBS Studio