Agree with everyone proposing narrowing it down to fuel or spark.
If it just dies, without warning - it’s probably spark.
If it hesitates, and coughs and stutters, then dies, it may be fuel.
Rene’s suggestion (pull a plug after a stall) is a good one.
You want to narrow it down to reduce the troubleshooting possibilities.
Good luck -
Rocky
(Easy for me to say, but I’m betting it’s a coil or loose wire!)