Embedded mongosh appears to hang when attempting large bulk insertions

Involved Compass Version: 1.32.2 on MacOS 12.3

Problem:
I’m testing on bulk insertions via Compass’ embedded mongosh with sample code as follows:

var bulk = db.mycoll.initializeOrderedBulkOp();
var num = 100000;
for (var i = 0; i < num; i++) { bulk.insert({ name: "Hello", count: i }); }
bulk.execute();

However, it appears to hang during the for loop.
The code works fine when executed in mongo or mongosh on host cluster where 100k documents can be inserted in a few seconds. It also works in embedded mongosh when num is small.

Steps to Reproduce:

  1. Connect to database cluster with Compass
  2. Execute sample code in embedded mongosh

Expected Results: Prompt returns with a BulkWriteResult after successfully inserting a number of documents

Actual Results: mongosh hangs indefinitely indicating the current command is still running