Generally, if your engine is quitting in flight....it's because it's leaning out
and overheating. Lets assume the fuel system is OK. You might have a
slight air leak....the carb must be tight down onto the o-ring or it will
leak air, and give tuning problems.
If you are not using a fuel with plenty of castor, your engine will run hot.
That's just a fact. If your engine is over-propped, it will over heat. If the
engine is mounted upright, it can overheat in a climb from leaning out.
Using the wrong glow plug can have an adverse effect on the engine. If
the engine is cowled, it may not be receiving enough cooling.
I wouldn't take the engine apart unless it has suffered compression loss.
FBD.