In the end you have to replace those panels and nobody in your country now produces them or has the incentive to start producing them unless they not only drop the subsidies but sell well over market value.
You have 25 - 50 years. Put your STE people to work. CSIRO is probably a decent org, give them a Manhattan project?
CSIRO and the University of New South Wales are the source of today's cutting edge solar panel tech. It's just manufacturing went to China and that is the challenge. It'll be met when China becomes totally untenable as a trading partner.
The alternative for most countries except a handful is that they continue to import oil from the two dozen-ish odd countries who export it.
The policy relevant question then boils down to, in two decades how many countries will be producing enough solar panels to export it? How many will be friendly to my country?
what if you develop manufacturing capabilities during the 30 years lifespan of the panels?