Can you explain a bit more about what you mean by a limit on how much code an event loop can handle? What's the limit, numerically, and which units does it use? Are you running out of CPU cache?
(and I say that as someone who caught themselves doing the same: severless is really good at hiding this.)