Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
Can this be a UI mod?
Yes. Maybe the "Selection fix" mod can fix it, otherwise you need to disable all mods and find out which one is causing the issue:
When a unit dies, the selection updates, which might trigger a selection deprioritizer mod.