My 09 electra glide did the same thing while riding. I was slowing down to make a turn. Rode it back home like that since I was only 2 miles from home. Hauled it to dealer, thay found a problem with the tach. Replaced tach and has been fine since. It was still in warranty so I didn't even mess with the codes, just took it there.