Odd behaviour at end of long prints

I’ve had several long(ish) prints fail lately during the last few layers.

I observed a 4.5 hour print last night, 300 layers.

At layer 285, with still >1m left, both the fan and the hotend turned off yet it continued printing. Had I not been there to manually set the hotend temp & fan speed, it would’ve likely clogged & failed.

Why would the printer be confused, both thinking it’s finished printing and yet still printing?

I always perform flow-rate calibration on any new/changed filament at the start of a print.

Thanks

A1 (Latest Firmware)
BambuStudio 1.9.1.66