While it can be disconcerting when things stop working, it really is just a part of things here, and one nature of the beast. As long as its not a regular thing, I wouldnt worry to much about it, and better yet, learn from it. Better to do it beforehand, than in the moment.
I shoot a Gen 3 17 a couple of times a week. Been doing so with the same gun for about 10 years now. Ive been using the same 20 or so Korean surplus mags for my weekly practice, and 99% of what I shoot through it are my reloads, which pretty closely mimic what I use in the 17 I carry.
Normally, the gun works fine, the mags work fine, but depending on whether its a new lot of brass, or an older one, is where the problems start to pop up. The older brass is normally the issue.
I shoot my reloaded brass to failure, and it gets reloaded a lot, and a lot goes literally for years before it gets tossed. What Ive come to find is, the rims on that older brass gets chewed up over time, from the constant cycling and extraction, and is what I believe, is the main cause of the problem. The extractor isnt always getting a good purchase on the rim, and things go awry.
Im pretty sure thats the problem, as the gun runs fine with factory and new lots of brass I load.
While that may seem like a problem and annoyance at first blush, Ive come to find its actually a big plus, especially when it comes to practice. I now get random, unplanned, unstaged malfunctions, and because of it, dont even bat an eye when the gun stops running. I just clear the stoppage and continue. Doing it all the time in practice, just makes it a regular thing, and theres really no thought given to it when it happens.
It removes the "deer in the headlight" look you usually see when someones gun stops running, and while they stand there looking at it and trying to diagnose why, when youve already cleared the problem and moved on and without hesitation.
Something to think about.