Many Fire Departments, mine for instance, will not fight a fire on a dwelling with solar panels, they let it burn and just contain the fire. The issue is both the threat of electrocution and also dangerous smoke/gas from the units themselves.
The plastics must be hell to firefighters. The Silicon is a major lung hazard. Breath it in and die slowly.
I wouldn’t risk it, either.