This is expected behaviour under certain circumstances
From a github commit:
The message "unclean server" is logged if the client connection is
closed while the server is not in "ready" state. That can be if the
server is in a transaction block, because then we can't reset the
server to non-transaction state other than by closing it. So this
message can happen in relatively normal use, and it's pretty unclear
and a bit scary. So this change attempts to make the message a bit
more precise and document, at least in the code, what it means.
source: https://github.com/pgbouncer/pgbouncer/commit/360eb42a4f6e83c907a36f7978e88676ab7584cd
Error can be an indication of the client closing the connection early or a network issue between the client and pgbouncer.