Anything in front of the aperture of the lens will have an effect like this. Introducing something that physically blocks the aperture stops it down a little and lowers overall resolution and will produce the flare on light points. The same thing is super common in astrophotography with a telescope with a central obstruction due to a 2nd mirror, suspended. The veins give the 4 point flare on light sources. And focusing masks like bahtinov masks produce a 6 point flare and odd shape, but also stop down the scope. It also reduces contrast and resolution. Many have forgotten to take the mask off and then shoot a photo and get a lower contrast, lower resolution, softer, but full of flare spikes image. 
Size of light source matters. Pin point light sources will produce flare while a large light source can often not produce flare. Lens design plays a huge role. Some lenses hardly flare at all. Some flare with huge spikes. It comes down to coatings, element design and blade design. Some lenses are desirable for their ability to get 14+ sharp spikes and have a massive blade count (9+). Some lenses are not desirable because they flare so awful and you can see the element design in the flare (Tokina!).
While the ability to produce the flare is relative; wide angle will do it easier, than a telephoto with shallow depth of field.
Try and find an image of star spikes from the sun (a large greater than 2 degree object light source) with a long focal length that is not shot at extremely small aperture or something in front of the aperture.
++++++++++++
Since you're shooting the sun, here's some example of how lens design and blade count and shape greatly influence how spikes can look.
And these are all bad, in my opinion, as far as spike quality looks:
Canon 22mm F2 STM @ F16 (bad flare)
IMAGE LINK: https://flic.kr/p/ojZfEK
DPP_0017_18_19_20_21_22_tonemapped_watermarked
by
Martin Wise
, on Flickr
Canon 22mm F2 STM @ F22 (bad flare)
IMAGE LINK: https://flic.kr/p/pad2aK
DPP_1487_tonemapped_marked
by
Martin Wise
, on Flickr
Canon EFS 10-22 @ F22 (weird shape flare)
IMAGE LINK: https://flic.kr/p/qyZX4s
DPP_2310_proc_mark
by
Martin Wise
, on Flickr
Tokina 11-16 @ F11 (ultrabad flare)
IMAGE LINK: https://flic.kr/p/q2HQw6
DPP_2128_proc_marked
by
Martin Wise
, on Flickr
Canon 35 F2 IS @ F5.6 (no flare)
IMAGE LINK: https://flic.kr/p/oqV1jQ
DPP_0868_tonemapped_marked
by
Martin Wise
, on Flickr
Canon 17-40L @ F22 (soft fat spikes)
IMAGE LINK: https://flic.kr/p/EoAYGN
img_a1013_proc_mark
by
Martin Wise
, on Flickr
Canon 17-40L @ F16 (no spikes)
IMAGE LINK: https://flic.kr/p/FzQeUR
img_a1248_proc_mark
by
Martin Wise
, on Flickr
(Note with the 17-40 example, its to show that a large light source like the sun will flare when obscured to reduce the apparent light source size, while without obstruction it won't flare unless you stop down more)
Size of light source matters; when the sun is obscured the apparent source size is smaller. And when you stop down aperture heavily, the blades cut in (pun!) to do that work too (because wide open it will not make spikes unless there's an obstruction).
F5 with a 70-200 for example will simply not flare big spikes from the sun unobstructed very much and if its out of focus, it will be even harder to see more than just a hazy bunch of light. Most of these lenses retain round aperture with blade shape through the common aperture values and that's why they require to be heavily stopped down to finally get to the point that the aperture shape is no longer round (no flare) and instead shows the blades (spikes) as the light comes through the shape and produces this.
Very best,