PickUp coil in distributor will do that.
Had happen to me once as you described.
Seems after it gets hot losses continuity internally.
Cools a little then makes contact again..