Prediction Errors for Penalized Regressions based on Generalized Approximate Message Passing