Sunlight puts in a serious amount of energy. Roughly 1000 W/m2 at sea level as a global average according to https://en.m.wikipedia.org/wiki/Solar_irradiance
If you’re trying to say that the sun is responsible for rising ocean temperatures, I’d like you to consider how long the sun and the oceans have been around, and I ask you why they haven’t boiled away, yet.
The sun is not responsible for the recent dramatic increase in ocean temperatures. That’s on us (humanity).
Of course that assumes angled panels, so the space taken is larger.