RE: Engine flameout problem
It will not hurt the plug to leave it "on" the whole flight.
Sounds as though your tank is vibrating and causing the fuel to foam thereby making the engine run leaner.
I had one like this the other day and the brass fuel pick-up line was broken inside the stopper. When the line was under fuel it ran fine but as the tank level got down, it would start sucking air and running lean.