Generalization Error Curves for Analytic Spectral Algorithms under Power-law Decay