Yes. It's always a problem knowing the best place to put a battery compartment and sometimes your options are very limited. Unfortunately you've just taken out all the mass you want underneath the bridge, or at least one side of it. Let's hope it doesn't cause you any problems.
Acoustic guitars have thinner tops and they generally work OK with only occasional problems, and you should still have a fair thickness between the compartment and the top, plus full thickness under the other part of the bridge (from what I can see).
Do you plan to rout the edge to recess the compartment, or leave it sitting a bit proud on the top?