Has symptoms of the electronic possibly failing in the magneto. (if it's not the spark plug)
You can find a magneto for less than $20. If it turns out to not be the magneto, you need a spare anyway, because they are prone to failure eventually.
Be careful and keep a heads up when loosening the two magneto 5/16 headed screws, they can twist off and both are needed I take a small hammer and give them each a few light taps to free the steel screws threads in the aluminum block. You can watch a you tube video about such.
Set the air gap at .010.