First Organization Creation Fails with Postgres “unexpected EOF on client connection with an open transaction”

No error appears in the Gitea logs (even with LEVEL = Debug).
Postgres logs show:
``unexpected EOF on client connection with an open transaction``
Retrying the same action immediately afterwards succeeds.

Has anyone else experienced intermittent failures when creating organizations? Could this be a known bug, or something with my DB setup/permissions? Any tips to debug further?