My Z4 (car!) used to do exactly that, if I pressed the clutch at just the right moment while coasting, it would threaten to stall at like 400 rpms but recover. It never did stall, but it also was 3L and 6 cylinders.
My Yamaha R3 used to stall all the time (sold it) ... it was just too damn lean from the factory, and a tiny engine, no rotational intertia, and then they cut the fuel on decel, and bam the engine just mechanically stalls without enough fuel.
Kawasaki had to disable dfco on the Ninja 300 to cure stalling engines.
My '18 Ninja 650 coughs on decel and if I pull the clutch and it coughs, sometimes it'll stall.
My '18 Street 765 RS (sold it) stalled once when I pulled the clutch while coasting to a stop light around 800 on the odo, but only once in 6000 miles.
Zack's "daily ride" review of the new Ducati Streetfighter V4 ... it died on camera when he touched the throttle while the bike was parked and idling, same thing my Yamaha did.
My hunch is that these low rotational inertia engines do not appreciate dfco (dynamic fuel cut off) and should really have higher rpms to idle reliably, and are leaned out with ZERO tolerance to meet emissions. Probably the only solution is pc-v or something similar to rework afr manually.
With my Yamaha R3, because it was so bad, what I did was turn off the idle circuit, and set idle with the main butterfly, and also bumped the idle up from 1000 to 1400. WOW what a difference for low speed corners around town, so smooth engine response.