Do you know what the secret is to opening a sparkling wine and not having it decide to start pouring out before you're ready? It's so easy and honestly makes no sense but it works every single time.
First, do hold the bottle at an angle pointing away from you and always keep your hand poised above the cork; sometimes they do indeed have a mind of their own.
But the big difference is this. Hold the cork and only turn the bottle until the cork loosens and easily pops out. Seems simple enough but I know for years I did just the opposite and gripped the bottle tightly while I turned the cork. Switch up that habit and you'll see a difference!