RE: engine woes....
You still didn't tell us what it is --- how can we help with no real information?
What fuel?
What prop?
Is it new, or old?
Does it start properly?
Does it transition properly?
Does it idle?
Does it blow fuel?
Was it in a serious crash?
Did you ever dissassemble it?
How was the idle mixture set?
How was the high speed mixture set?
How is the tank pressurized?
Have you checked for loose head bolts & back-plate bolts?
Have you checked for an air leak.
Shutting off in flight at full throttle usually indicates --- fuel starvation from a problem in the delivery plumbing, or too lean a fuel mixture, or overheating from a variety of reasons.
Not many choices -- these engines are very simple, so it is findable & fixable (don't discount bad tuning yet).