Reminds me of the time my trusty old Beemer quit on me, I was on a side road so I had lots of shoulder to work on and a good tool kit. Turns out when I put the timing cover on, I mis-routed the points wire and it was pinched between the case and the cover. When it warmed up and expanded, it quit! Eventually a dim light went on (in my head, not on the bike LOL)
https://youtu.be/DHoKsm8vXHE