Mounting Electric range when stud is on the center line?
You're in for some drywall work anyway (and it's going to be behind the range, so it does not have to look too good) so you might as well make a nice big hole and put a horizontal 2x4 between studs (think &quot;firestop&quot; per usual application) and mount your box where it's most convenient for the range install, get the cable into it, then fix the drywall.
You could also add one (or two) chunks of 2x4 to the stud as suggested by Platinum Goose, but it's unlikely to save much, if anything, on drywall repair and is potentially less stable in the face of force applied.