Executing huge queries or loops make qovery shell close server connection

I try to loop through thousands of records executing some stuff on them. After some records qovery shell exits with

ERRO[0031] connection closed by server: websocket: close 1011 (internal server error): EOF from upstream for stdout

The same happens when joining huge tables with hundred thousands of records. Is qovery shell somehow limited?

@Erebe do you have an idea?