Update (21 Nov): the package update to 202611200321120000 (Nextcloud package 5.9.2) still ships notifications 8.0.1. It also overwrites /app/data/apps/notifications/lib/Push.php, so the manual patch has to be re-applied after every package update. Users here were hit again within two hours of the overnight update.
It only triggers when at least one recipient has a mobile device registered for push (oc_notifications_pushhash not empty). An instance with no registered devices showed no timeouts on the same version.
It's triggered by notifications whose link is under 128 characters but long enough to push the 200-byte budget below zero. In our case that was "file created" activity notifications for files in a user's Talk/<conversation>/<user> folder, so Talk attachments are the obvious victim. Desktop-client uploads into deep shared folders hit it too, and they leave stale file locks behind.
Until a fixed package ships, we're using a host cron that re-applies the patch only when the file's md5 matches the buggy 8.0.1 build (027b88d0b130a0243a9cb9fa2500614e). Happy to share the script.
If you also see Cloudflare 521s on /ocs/v2.php/apps/spreed/...: check that the A and AAAA records have the same proxy status. If only AAAA is proxied, Cloudflare can reach the server only over IPv6. That was a separate, intermittent problem for us.