Just like the error mentioning, have a try to configure the WCF service and increase the timeout value on the Binding.
Similar thread you can refer to: https://stackoverflow.com/questions/1520283/wcf-service-how-to-increase-the-timeout
https://stackoverflow.com/questions/6849552/sharepoint-2010-securitytokenservice-error