originally reported here https://www.drupal.org/project/bee/issues/3138905 ✨ How to delete units by booking Fixed
We just hit this problem too - after deleting some Units the "referenced units" count is incorrect which messes a lot of things up.
Drupal 10.3.10
BEE 8.x-3.1
Delete a unit then view the 'referenced units' on the node
Active
3.1
Code