Ah, IC replacement, so square header pins will blow it out (0.025" square, much thicker than an IC pin). At best, ruining a spring type socket, but not even fitting inside a machined pin socket at all.
I remember Mill-Max headers available with 0.3" rows for just this purpose, but I forget if they had any with bent pins for SMT.
Could also just take whatever headers and do a butt joint. Assuming you can get an iron in there under the plastic retainer strip part. This usually leaves a small fillet though, may be too weak. Or there's those headers that are DIP sized but have turret posts on the other side, often used for wired jumpers, resistor options, that sort of thing. Those turrets, SMT'd, would have okay bite, again if you can solder them.
Another option, if you have the vertical height, is to build two PCBs in one. Snap them apart and slot one into the other, so the one is the connector board as it were, and the other stands up vertically, with whatever components on it. Yes, that's getting towards the "heroic" side of solutions, although not really all that bad as it's pretty easy to assemble.
Tim