I’d still take the posted study with a grain of salt. Vitamin D deficiency between individuals is likely to be highly correlated within a particular region and time period due to its dependence on weather, and the authors didn’t control for that. But they did say that this was just a pilot, and given the effect size it’s probably worth investigating further.
Edit: fixed units
There are safer sources of vitamin D.
Provided you’re taking reasonable precautions, limited exposure to broad-spectrum UV is quite safe.
"Low serum levels of vitamin D are found in significant numbers of all population groups in the UK: in winter 30-40% of all age groups in the general population are classed as vitamin D deficient. Even towards the end of summer 8% of adults and 13% of adolescents remain deficient."
where deficient is defined as < 25 nmol/L of 25(OH)D