If they are of the same size, the pixel size - area - will be 10 times smaller for 10x more pixels (or a dimension - length x width - reduction of ~3.1x)
Now, noise is bigger if the pixels are smaller. This is one of the ways to radiation harden components: make their features larger.
I'm sure a small sensor like those in a compact camera would be subject to a lot of noise. Bigger sensors like 3/4 or full-frame are usually better (but they're probably using something else)
So yeah, maybe a 20Mp sensor with the apropriate feature size would be huge
I have a 24 megapixel sensor lying on my desk. Its pixels are 6 micron wide, which is large (but not huge), and the thing is about 4 cm by 3 cm in size. I don't know much about cameras but I think that's about the biggest you can fit in a typical consumer camera body.
Also, while obviously technology has improved, the industry doesn't necessarily move towards smaller pixels as a rule. To illustrate that: I work for a company that designs and produces image sensors, and I can tell you that we have one sensor product that has a resolution of just over one megapixel, but it's larger in area than our seventy megapixel product.
It all depends on the specifics of the project, and I can imagine that operating in space has certain constraints that prohibit just swapping in another sensor. These camera's are scientific instruments, and that means different rules apply.
You do know that a 20MP sensor is significantly (~10 times) larger than a 2MP sensor, right? So the mechanics would probably simply not fit.