Is it okay to cut a notch into cross brace?
If that is a fire block it may be very convenient to notch it to just the right depth. With the right kind of metal electrical box you could get a secure box attachment by screwing through the back of the box into the fire block.