This is exactly why I don't think it's a huge risk to be reliant on China for solar panels. If relations between your country and China go bad, it can't be that much of an emergency when they stop exporting them to you. All the panels you already bought still work!
Unless there is some hidden cybersecurity risk of them shutting off panels remotely?