Request Timeout Exception Occurs when Uploading PST File to Exchange Server

Hi team ,
when i upload PST file (Note : File larger then 28 GB) to Office 365 using EWES Client after uploading some mail i got The request time out exception and try to reconnect but i am not able to create again connection .
First when we run the program the connection establish successfully then at some random message getting this type (the request time out exception) occurs .

Sample Code :
public IEWSClient conntiontooffice365_output() throws Exception {

client = EWSClient.getEWSClient(mailboxUri, username.getText().trim(),
String.valueOf(userpassword.getPassword()).trim());
EmailClient.setSocketsLayerVersion2(true);

client.setTimeout(5 * 60 * 1000);
EmailClient.setSocketsLayerVersion2DisableSSLCertificateValidation(true);

return client;
}
//add mail
client.appendMessage(path,mapi,true);

@John_DK,
Welcome to our community! Thank you for contacting support.

Please share a comprehensive code example that includes the uploading PST file and reconnecting. It would also be great if you could share the PST file.