As I said above, i dont see how something with the speed sensor would make the bike cut out.
A low battery might to some extent do that, and is also a known cause for the speedo to read way too high.
Just check it to rule it out, theres no way to know it its one big issue, or a combaniation of a few.
Hope you get it sorted and post your results.