Great question — answering as the UphillTech team:
I have had success in similar situations by cutting a small piece of wood to pass through the gap on the left hand side and fixing it with some glue and two screws through the drywall. That meant I only had to fill two screwheads as well as touch up around the box. If necessary make another piece to do the right hand side as well. The "drywall" I was working with was lath and plaster (with horsehair ! ) so it was a bit crumbly in places so the wood reinforcement worked well.
Full answer by Solar Mike: https://diy.stackexchange.com/a/330777 (CC BY-SA 4.0).
Need it done for your business? UphillTech.