So the PostgreSQL server was under really high load whenever the web worker was running, which affected all of the instance.
The solution was on the PostgreSQL side: https://pgtune.leopard.in.ua
@angristan there is a mstdn.io Discord ?
@Matthieu Mastodon discord
I don't know which parameter was important, but it's day and night