If at all possible, don't get yourself in a jam to begin with... Deuces are a little big for extreme rock crawling.
That said; I know accidents DO happen and people do dumb things, sometimes on a fairly regular basis.
For anything as big as a deuce, 4"dia. (3" if you're doing the double rollbar style) schedule 80 .250 wall is minimum. And that stuff will require a big hydraulic bender.
An alternative would be the weld-it preformed radiuses and a GOOD welder who knows what he's doing. You'll still want to gusset the corners and cross-brace it where needed. All should connect to the frame; attaching it to the cab floor is a big NO-NO.
Another thing to consider is the use, at least overhead, of 1/4" wire or bigger 2" to 3" opening steel mesh screen to cut down on the possibility of a smaller boulder or downed tree limb coming through the openings between the roll-bar tubes and hurting you as you cart-wheel down the hillside.
For a material strength test; lay a couple of long pieces of the pipe you've chosen on blocks and drive your rig up on them. Next, lay on the ground under the pipe--
Feel safe? When you get pipe big enough to feel comfy laying under, that's the size to use.
This may all sound kinda tongue-in-cheek but you won't find it funny when you're looking at the ground where the sky should be.