Problem w/ my car suddenly jolting and decelerating?

I got a 2002 Honda CR-V 3 weeks ago. As I was driving on the freeway last week, my car suddenly jerked and started decelerating, then after 5-10 seconds, it sped up again, then did the same thing. Luckily I arrived home but then the check engine light came on. What could be the reason for this?

Read more: https://hondanews.net/cr-v/problem-w-my-car-suddenly-jolting-and-decelerating.html