The situation that you describe is caused by excessive Eco-Damage (ED). Any base that produces more than a certain number of minerals will, by default, incur ED. You can see a base's ED in the base screen. It will look something like Eco-Damage: 10. It's possible to control ED in high-mineral bases. Please see the Ecodamage entry in the FAQ.