How can I insulate a stud bay containing a subpanel?
Have you considered using a surface mount box which would allow more space for insulation in the wall behind the electrical panel?

You should definitely do as much as you can to prevent air leaks.