In the past, I used to leave the open spools (PLA) on the printer for months with a feeble attempt to cover/protect from sunlight with old box, paper bag etc.
However, recently noted two issues;
Where the filament run to the hotend had been exposed to sunlight, it had become brittle and snapped like cheap spaghetti, the stuff on the spool that had minimal protection was OK, I just determined the extent of the brittle section and cut it off.
When changing to a fresh spool of PLA of the same make, I noticed that the print made with the fresh stuff was notably better in overall quality than the old material that had been exposed for months.
Unless I intend to be using the printer on a daily basis, I now remove the spools, pack in airtight bag with silica gel and store out of the light.
It seems a bit of a faff at first, but you soon get the removal technique sorted. I did have a free demo reel of PLA that was completely shattered, couldn't even be unwound without disintegrating into tiny fragments. PLA from reputable suppliers has been generally fine unless abused as above.