Firefox freeze randomly

i have this issue for long time, but no one talk about, thought it was only me, Pi4/sway/wayland.

The issue has been debated many times. The reality at some point the Wayland compositor has to kill applications connections.

And links to this: