JPG40504 flarum-bbcode.forum.quote.wroteI would start by visually checking the wiring for interference with the speed control parts and faulty insulation. Unplugged of course.
This can be a very small nick in the wire, so look it over closely. I had this happen when I cleaned the head stock to roughly and pulled the wire out of the small clip. It had a tiny nick in the insulation and it stopped every time at the same speed. I was unintentionally wise in not turning it back on after the third in time, and the wire was still contact and I finally saw the spot. After i found it, I could feel it with out looking. you might try that.