When you have 1.2 laps of fuel left coming on to the last lap, the pit stop kicks in & it won't cancel. That's a bug.
1.2 laps of fuel and it thinks you need to pit? How is that even a thing?! That's called running your race pretty damn perfectly!