when it dies, if you look in the carb and activate the accelerator, does gas spurt out into the carb bores?
It dies either because it starves for gas, or, spark stops from what it sounds. If gas stops and it dies, and you see no gas in carb when activating accelerator, you may have a stuck needle/valve which the float in the carb controls, allowing more or less gas in.