Extremely long hang when first receiving buffered RPCs (PhotonPeer.DispatchIncomingCommands())

Options
My program hangs for an extremely long time when dispatching buffered RPCs. The hang very noticeable at about 3000ms with about 20 RPCs in the queue. The hang increases drastically with more RPCs, such as 50sec with about 200 RPCs. Even when the RPCs do not execute any code, the hang still occurs.

This app has shipped on multiple platforms with the same pattern of RPCs, but this hang is a new problem that occurs on Nintendo Switch. I'm looking for clues for what could cause this huge slowdown inside the Photon DLL code.

The source of the slowdown is here, inside PhotonHandler.Update():
bool doDispatch = true;
while (PhotonNetwork.isMessageQueueRunning && doDispatch)
{
            // DispatchIncomingCommands() returns true of it found any command to dispatch (event, result or state change)
            Profiler.BeginSample("PhotonHandler.Update_DispatchIncomingCommands");
            doDispatch = PhotonNetwork.networkingPeer.DispatchIncomingCommands();
            Profiler.EndSample();
}