This is probably not a problem. Could just be that he gets a little startled or has a pang from the teething, and then he shivers a bit and goes on. However, there is also the possibility of this being a kind of very mild seizure activity, so it would be best to take him to his pediatrician to have him evaluated. A sleep-deprived EEG would give a reliable answer.
Let me know if you need further information. Please remember to click the accept button if this information is helpful. Thanks. JeanRN