Linked library overrides adding numbered suffix

Hey folks! I’m linking a rig for animation and then creating a library override so I’m able to animate it. The issue is that for some reason Blender starts to add suffixes to any linked collection I’m overriding after the first one. I need naming to remain the same or things will break. For reference, this is what Blender adds once I override. These suffixes aren’t present in the source rig file.
Capture
Any idea why Blender does this or how I can put a stop to it? Thanks!

Most things will automatically adapt to the new name. Constraints and drivers should still work.
If you’re doing something with a script that has the name hard-coded, then you need to adjust the approach.

You can loop through the children of the selected armature, and find the mesh that you need. The python function startswith() would work to find a matching child mesh, while ignoring the extra characters at the end.

Thank you! I had constrained some placeholder geometry in the rig and those broke in the override unfortunately, so constraints do seem to be affected unless there’s a better way to do it.