It looks as though, playing with a planet quality bonus, I sometimes get planets that have a higher planet quality than their total number of usable tiles. I am not sure whether this is caused by the quality bonus or by something else. But I should not have a Quality 7 planet that has a total of five usable tiles including the base colony, especially given that I have terraforming and an orbital terraformer.