
I'd expect a four cylinder engine miss firing or failing to fire on two cylinders to stall (stop cranking/idling) so would focus on the miss fire. The year, mileage and which two cylinders are miss firing or failing to fire may be a clue. If I was a gambling man I'd wager on a failed coil pack and that one of the coil's windings has become separated resulting in a loss of connection and spark when the coil pack gets hot. Further hands on diagnosis would be needed to prove the fault before the willy nilly replacement of any parts because the fault could also be caused by the likes of a failed Engine Control Module, spark plugs, HT leads, or HT lead connections.
Where to start? The CBF1000 has two coil packs, one for cylinders #1 and #4, the other for cylinders #2 and #3. Establish which two cylinders are miss firing, if for example its cylinders #1 and #4 (or #2 and #3) then swap the coil packs over and check if the miss fire swaps over with the coil packs, if it does you've proven the fault.
If you’re allowed spanners and you haven't already, you may want to
download the Honda Workshop and Owners Manuals here.