Is it acceptable to cut studs to install an electrical panel?
It's not likely a problem. However, it would be preferable to at least box the area with a flat header and sill. This will help reduce movement that could crack drywall joints later, and will keep the drywall more stable around the box.