I thought this was the famous spit stall. I have done it in a mostly pure loop, but most of the time it seems like more of an accel stall right at the edge of a pure stall. The solution is to watch your speed, and don't get target fixation and try a vertical maneuver without the speed to complete it. You have to be a lot smoother on the controls when slow in the spit; you cannot throw it around with abandon like you can when you have some speed.
I have lots of practice failing to recover. The only thing that has ever worked was to drop flaps, and as they come down drop gear and raise the flaps back up to get the nose to bounce. I do not cut the engine. If the flaps were already out, get them up and cycle the gear. Once you can get the nose down, apply just enough back pressure to keep the engine running, or to get it to refire if it has cut off. If the engine has been off long enough, you may need to restart it. Regardless you will need a bunch of altitude or even more luck to recover, and now your enemy has a huge E advantage. I rarely recover, so that's not much of an issue.