Error Analysis of Generalized Langevin Equations with Approximated Memory Kernels