One thing I have noticed is this reliably happens if available delta-v > 64k. It's hard to do that without mods, but with mods can be easy.
Ah, does your vessel have delta-v over 64k? If so, that's the issue. I forgot about the ion engine, but that has high isp so you probably can get more than 64k delta-v, which is what seems to trigger this.