Haproxy loses connections

When i connect to haproxy balancer and try execute every queries psql tell me:
server closed the connection unexpectedly
This probably means the server terminated abnormally
before or while processing the request.
The connection to the server was lost. Attempting reset: Succeeded.
I repeat this command and now it works, but why?
When i use them direct on current base it works without errors, and reserve server got it

My configuration:
Main server:
keepalived for
postgresql look for *:5432

Fail-over server:
keepalived for
etcd(deep copy of previous, because onlye 2 machines, without changes on future)
postgresql look *:5432

Haproxy config:

maxconn 100
log global
mode tcp
retries 2
timeout client 4s
timeout connect 4s
timeout server 4s
timeout check 5s
listen stats
mode http
bind *:7000
stats enable
stats uri /
listen batman
bind *:5000
option httpchk
http-check expect status 200
default-server inter 3s fall 3 rise 2 on-marked-down shutdown-sessions
server postgresql_0 maxconn 100 check port 8008
server postgresql_1 maxconn 100 check port 8009


timeout client 30m
timeout connect 4s
timeout server 30m
timeout check 5s

This is my error, sorry