Hopefully you can turn it to a point where the old stud can be knocked out & a new one angled in through the hole. It doesn't need to be straight in there until you're pulling it into the hub. They can often be tapped into place when you match splines with the hole, lug nut will pull fully tight when the wheel is installed.
You'd have to remove the knuckle & press that hub out of the bearing if you can't find clearance. Trying to bang or yank it out & you'll be pulling it for new bearings soon IMHO.
I'll move this to the Brakes, Suspension & Chassis area for you.
When I had to change out a broken wheel stud on my 06 ZXW I used the Powerbuilt upper control arm bushing service kit #25 from Advance Auto via their tool rental program to remove the old lug stud combined with an impact wrench to tighten it down (as when I was trying to do it by hand caused the whole hub to turn instead of pressing the stud out. I went with this method as it was a free rental and the C of the press has an open end so it would fit over the head of the lug stud. Didn't have to worry about messing up the wheel bearing trying to beat the broken stud out that way.
To put the new stud in I started the stud by hand, started drawing it in with an open ended lugnut (with the acorn side facing away from the hub and a couple washers between the hub and lugnut) and a 1/2" drive ratchet, and once I could get it as far as I could I finished drawing it in with an impact wrench with the power turned down to as low as it needed to work.