Is Rain‑X® Original Glass Treatment safe to use on solar panels?

No.  Rain‑X® Original Glass Treatment is not recommended for use on solar panels.