If the sun can radiate heat into space, why is this a problem for data centers in space?

We have been down this path.

All satellites need to reject heat. Some more than others, but it isn’t intrinsically hard. A good start is too look at the solar arrays. Their area is a guide to the power need, and to a good approximation the power that needs to be rejected.

If you are shielded from the Sun and the Earth, space is mostly very cold. Any warm body will radiate heat away with essentially no heat coming back from space. A panel shaded from the Sun pointed so it’s sides are directed toward the cold of space will radiate power. The radiated power increases dramatically with temperature, but even a tepid object will cool. This technology has been well understood for decades.
In general the area of the radiating panels required is less than that of the solar panels creating the power. Some active control of attitude is needed, but nearly all satellites already do this.

Elon’s Starlink satellites already need to reject some heat, and the new Starlink 3 satellites even more. His Starmind satellites will just be more of the same.

Where things go silly is the idea of enormous monolithic data centres. Everything goes horribly more complicated. You need large scale active heat transfer mechanisms to move the heat into the radiators. Not a new problem, the ISS does this. But it is an unwelcome and costly problem.

So don’t make the satellites any larger than the point where simple passive systems stop working. Which is, for instance, Starmind. Google are doing something similar. This limits the compute capability of each satellite, but the thinking seems to be that these will be doing the user side of the AI, with training still earthbound. Communications bandwidth is more than enough.

Whether the business case works out is the harder question. Oracle has just stalled a huge data centre project. Whether this is a blip or the first signs of industry wide contagion will be interesting to observe.