Dark photons from light with cosmic domain walls