How do i replace a 4x4 square box with a 4x4x21/8 box
Be selective about which deep box you use.   Many of them offset the knockouts toward the back, so you can use the same offset bends you're used to doing.