Normal things to consider are typically the shooter, the ammo and the gun.
Shooter - Grip and maintenance. Properly firm and stable grip/wrist lock? Lubrication?
Ammo - What brand and quality? Power level? Sometimes a particular budget, low-cost load might also be at the marginal end of the "power" needed to properly cycle the slide & barrel, and not have the necessary amount of "power" to reliably cycle the pistol.
Gun - Anything appear out of normal? What was "repaired/corrected" by the gun company before you stored the gun in the safe? How many rounds had been fired to confirm repair (by you) upon receipt of the repaired gun? Was the repair actually sufficient to correct the previous observed "problem"?
More than one of these influences may be present and responsible, to some degree, at the same time. (Unlubed gun, low-powered ammo and the shooter not using a sufficiently firm grip & locked wrist, especially when not having fired the gun for an extended period.)
Presuming (meaning "if") the earlier repair attempt actually corrected whatever was previously causing you a problem, and nothing appears out-of-spec or improper with the gun, a next step might be to clean and re-lubricate the gun (per manual instructions), and consider using a different brand/line of quality ammunition. If the problem persists (and especially if it exists with multiple magazines and at least a couple of brands of ammo), then perhaps a call to the gun company's customer support is in order.
As pistols can smaller and lighter, and especially when the slides get shorter & lighter and the recoil springs/assemblies also get shorter, they may become a bit more "sensitive" to both "shooter" and "ammo" influences.
Dunno, Just some thoughts. It's not really possible to "diagnose" a problem online.
However, one of the old sayings among LE firearm instructors and armorers is that on any given day, maybe 95% of all reported "gun problems" are actually shooter-related problems (something the shooter is doing incorrectly, or not doing but should be doing), and maybe 3%-4% caused by ammo, and maybe 1%-2% caused by an actual gun problem.