It's not about the var for Malika being two values.
It's, for exemple if the player gets unbirthed by her, than gets a bad end by another npc, the two memories with Belial will show up, saying about being unbirthed by her, then being cockvored by the pink for exemple.
Like going through Belial meeting didn't fully rollback the interaction with masika before going to another bad end with someone else.