light doesn't do anything for a dead bud.
light and heat encourage mold. and thats something you don't want in your buds.
I always hang my buds around the carbon filter that sucks air out over the flowering room. Never had any issue.
Dried in a dark place - didn't matter at all.
If you don't have enough air flow or if you have moldy buds to begin with, mold thrives in humid, stale air lighted place.
You could hang it in paper bags. poke a hole at the bottom of the bag, pull the stem from it and hang it by the stem. it will make the bud dry in a dark place and the paper will suck the moisture evaporated and spread it to a larger surface to allow faster drying.
however, it is not recommanded as it will dry your buds too fast. they will dry first at the outer part but the center will be very moist still. when it will seem dry it would still need quite a bit of time.
by the time the center dries and out part will crack when touched.
I know people who use it on a regular basis and just know when to put it down and re-distribute the humidity by jarring up the weed. (curing)
They are some fine growers.
If it troubles you so deeply just put something below the buds to block most of the light.
As long as you didn't had mold issue and you have temps below 35°C you should be fine.