Try changing your AWS ec2instance type because random failing of jenkins test and chromeheadless failing to connect is often due to lack of resources