I see your in panic mode...lol
If it's mechanically sound then it's either fuel or ignition. Did ya pull the plug when it did this? Is it wet (NO SPARK) or a lighter color (NO FUEL)??
I've seen electrical stuff cut out at high RPM's. You'll have to check all the connections and may have to OHM out some of the components.....
If any part of the harness has electrical tape/patch on it, remove it anhd look underneath, I've seen many problems within previous repairs
All our government does is distract us while they steal from us, misspend our tax $ and ruin our country