I never hear 'flame off' at all.
I hear 'flame out' used only for jet engines that go out in flight.
For a burner, stove, pilot light, etc., the usual expression is 'flame goes out'.
In your case I would just say 'the flame keeps going out' or 'the flame won't stay lit'.
- For Teachers