ESS discharging battery in "Keep batteries charged mode"

Hello! In the Optimized with Battery Life mode, everything works fine: the battery discharges at a power level not exceeding the set threshold in ESS. However, when I switch to the Keep Batteries Charged mode, it doesn’t start charging; instead, it discharges at a random power level.

Also sometimes in Optimized with Battery Life mode it abruptly drops battery consumption to very low level (like 100w) and then goes back to set level (1000w in my case)

My battery (JK-BMS PB with firmware 3.52) connected via CAN to cerbo. BMS uses victron can protocol. DVCC is forced on.

My stats in Keep Batteries Charged mode:

My stats in Optimized with Battery Life mode:

I suspected a poor input sine wave in the house (sometimes the inverter would lose input, and it would reconnect after 5 seconds). I read on the Victron forum that this could be fixed by enabling Weak AC. I enabled it, but the issue with the Keep Batteries Charged mode persists.

!UPDATE!
Weak AC mode did not help :frowning:
I`ve noticed that this behavior happens only when i consume more than 4kW-6kW. Otherwise everything works fine.

My inverter settings: