Why does my primary container restart often?

I setup a HA triplet on Docker on AWS EC2 ECS optimized instances, but noticed that the HA is getting broken quite a few times.

In redundancy detail, it shows ‘cluster voters not ready’ as the Last Failure reason.

I have used network as host and using hostnames for all 3 nodes for redundancy setup in the docker run command and most of the times redundancy is Up with config-sync also Up and this setup is not live yet, it is still in testing phase.

The system logs say standby broker not reachable around the time of restart.

All the required ports are also allowed in AWS Security Groups.

Can someone help me with that.