A junction box has bypass diodes that keep energy flowing in one course and prevent it from feeding back into the panels.
The SPD needs for an installation that is definitely shielded by an exterior lightning https://regansmex051000.thelateblog.com/30766516/the-2-minute-rule-for-junction-box-pv