Limit potential size of parser stack in BridgeContext

This caps the maximum number of parsers being handled at once in
BridgeContext to 1000 to ensure that memory consumption does not
grow out of proportion.

Bug: 259134662
Test: N/A
Change-Id: I33863eca60cfec8a622d35c84af7ca278fefdd17
(cherry picked from commit cfdafe50dbeb3effbcb420720160353ad595abab)
Merged-In: I33863eca60cfec8a622d35c84af7ca278fefdd17
1 file changed