Out of memory exception when calling addAnnotations
Hi all. I work on an application that applies annotations to PDF documents.
After loading the PDF viewer we call the annotation manager API's addAnnotations method. The promise eventually errors out with the following error (see image below) "Error: std::bad_alloc,std::bad_alloc", and we can see that some of the annotations have not been added.
Some important context is that we are attempted to add up to 500 different annotations to a given PDF. From my (admittedly basic) tests, the limit appears to be around 120 annotations before the error happens.
I have attached an image of the browser's console. This is in Google Chrome.

Is there a known maximum number of annotations that is supported? I did not see a number mentioned in the docs.
I tried chaining the addAnnotation promises in batches of 100 at a time, but the error still occured.
Very interested to hear if anyone has also had this same issue, or if any Adobe devs would like to take a look that would be excellent and greatly appreciated.
Thanks for reading.
