There are 2 different settings which are related to your case:
- Remote button press repeat rate (ms)
At this interval, the button is automatically repeated as soon as you press the
for longer than the following setting - Remote button press delay before repeating (ms)
So play a bit with the second setting first. For my TV this combination works better than the default values:
- Remote button press repeat rate (ms): 100ms
- Remote button press delay before repeating (ms): 200
Regarding the xml file, please install a recent nightly build of LE12. There was an attempt to support CEC at both HDMI ports of the RPi4/5 at the same time. But this had some culprits and was reverted after release of 12.0.1. This patch wasn't restricted to the RPis.
In addition, KODI must be stopped before changing such settings files via CLI, otherwise the values may be overwritten by the running process.