That’s not accurate. “Rooftop” solar is minimally dangerous to install, but large scale solar fields on empty land is extremely safe per kWh.
PS: Nuclear also has many deaths not generally included in these statistics. As building and operating a power plant is not the only risky things you need to do to have nuclear power. Ex: https://www.ncbi.nlm.nih.gov/pmc/articles/PMC4164879/