The thing that protects us from the Sun, is made by the Sun. We live in the 'flame' of the Sun, not 'outside' it, and the Solar/Mag field is the only thing that keeps our planet from looking like Mars, or possibly a roasted marshmellow.
The real problem we have, which Global Warming Alarmists ignore, is that the Magnetic Field of Earth is getting weaker.
Only thing I ever pulled out of them that looked pretty much hard core reality was when you get a flip you can expect the start of the next glaciation pretty soon ~ and that would be in line with cosmic ray thesis as well.
So, more cosmic rays getting through charges up atoms that make sulphuric acid molecules that make more clouds that reflect more Sunlight and it gets colder.
If we double or triple the effect with a pole change on Earth, bet that's a humdinger of a coldwave ~ BTW, we are about 5,000 years overdue for the next glacial advance anyway.