Reasons:
Loose connections causing arcing, overload from undersized cables or breakers, or a surge event such as lightning without adequate protection.
Prevention:
Professional installation using properly rated components, SPDs, tight torque connections & periodic maintenance checks on solar PV systems.
What's the reason and what should be done to prevent this?