If you are right up on the stud, a Madison Smartbox will fix this
The smartbox might not be exactly the size of your opening, but the faceplate will cover up the gap.
Cut a hole out of the box for the cable, maybe 3/8" or so - don't use the built in clamp, it will mangle the network cable.