There's so much we don't know.
The solar wind is much more energetic with sunspot activity. The solar plasma then inflates a magnetic bubble originating from the sun’s field to a greater extent. This inflation mechanism allows deflecting a greater amount of cosmic ray originating outside the solar system.
A lower amount of cosmic ray reaching Earth’s atmosphere results in less clouds at altitude to reflect sunlight back to space. More sunlight heats the Earth’s surface.
Low solar activity reverses the process, thus allowing more cosmic ray activity, more production of clouds, and less sunlight to heat the Earth.
https://wattsupwiththat.com/reference-pages/solar/