"Heart" here is a metonym for the people's allegiance and affection. Alternate translation: "the allegiance of these people" (See: [[rc://en/ta/man/jit/figs-metonymy]])
These phrases mean basically the same thing and are combined to emphasize Jeroboam's fear that the people would turn again to Rehoboam as king. (See: [[rc://en/ta/man/jit/figs-parallelism]])