Entities appear to be duplicated for one device?

I have 3 IKEA BILRESA remotes. 2 of them list entity IDs normally, but one of them seems to duplicate the IDs, with the duplicates grayed out in parts of the UI, and Unknown in the entity list on the device page:

Here’s how another device of the same type shows:

Why is this the case for only one of the remotes? I’ve tried deleting and re-adding the device, and upon add it shows normally, but within some seconds the dupes reappear.

Curiously, the device also seems to show up twice in my Devices list:

If I rename one of these, the other gets renamed as well, so I assume if I delete one the other will also be deleted.

I’m now encountering this issue with a second, different IKEA device, except in this case the entities are duplicated and all are active.

I believe the issue is caused when I factory reset the device but don’t remove it from HA manually, as well. I assumed it would behave like Zigbee, where the device is remembered and restored.

When I removed the device and then reset it, this solved the issue. However, that wasn’t the case for the BILRESA I initially posted about.

Do I need to edit the database directly to fix this one?