I’m not on pc so can’t inspect it, but make it a sandboxes iframe so it can’t interact with the parent site.
Is there a way to throttle iframe cpu usage ?
You could probably queue messages, cull old messages, cap concurrent connections. That may be the issue is too many peers