Maximum length is when the other end runs into the garage wall or a wheel or some other obstruction.
or something breaks routinely in the breaker bar and/or socket.
I'm not sure I understand the question. Anything can be broken, and when enough force, everything will flex. That's why they have 1/2" drive sockets, and bigger.
FWIW, I have two or three lengths of gas pipe in my garage, various lengths, that I slip over breaker bars. Something like 1" or 1.25" ID pipe. I'm sure the breaker will flex inside the pipe, but out of sight, out of mind... One of them might be 4' but usually 3' is about all that is needed.
I also keep a deadblow hammer around. A few raps on a stout wrench works well in close quarters (like caliper bolts).