As seen below, the AI tends to over do it with building factories.
It might makes sense for planets where a lot of pop is supported (like in this case) if there is nothing worthwhile to do on the planet, but this one has HIGH fertility and normal mineral + a Market and/or lab is always a good idea overall
I would imagine it would make sense to limit the number of factories to:
3 if fertility and metal <=low and the faction is not behind in technology
2 if fertility and metal <=low and the faction is behind technology
1 if the above is not met, thus in this case: 1 factory 2 farm 1 mine 1 Market and 1 lab (mine, market and research priority could be randomized so that some planets would end up with 3 mines, labs or mines, and others anywhere between)
As you can imagine the AI in question has basically 0 mental and is going around begging for food