Oh, what strange behavior!
I also suspect it might be related to BPL. Oddly enough, the close button also opens another dialog box showing a different number of turrets, which, to make matters worse, are also invalid 😒.
I've tried to downgrade to 1.2.9 (in case this bug is a new one introduced by the changes in 1.2.10) - but same behavior, so downgrading is not an option.