Cosine to the fourth power is the wrong formula, it is for camera lenses and takes into account the apparent size of the pupil from both sides, as well as distance attenuation for objects on a fixed plane. Solar illuminance is proportional just to the cosine, no power.