MQTT-TLS AWS IoT connection issue

I’m using the MQTT-TLS library with AWS IoT, using it to publish data from sensors periodically.

Modem Type : BORON LTE
Device OS : 3.3.0
MQTT-TLS Library : 0.2.25

I commented out mbedTLS options.
MBEDTLS_SSL_PROTO_TLS1_3
MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE
MBEDTLS_SSL_ALPN
MBEDTLS_CHACHAPOLY_C
MBEDTLS_POLY1305_C
MBEDTLS_CHACHA20_C
MBEDTLS_ECJPAKE_C
MBEDTLS_NIST_KW_C
MBEDTLS_HKDF_C
MBEDTLS_SSL_COOKIE_C
MBEDTLS_SSL_CACHE_C
MBEDTLS_SSL_TICKET_C
MBEDTLS_CIPHER_MODE_XTS
MBEDTLS_CIPHER_MODE_OFB
MBEDTLS_ECP_NIST_OPTIM
MBEDTLS_KEY_EXCHANGE_ECDH_ECDSA_ENABLED
MBEDTLS_SSL_KEEP_PEER_CERTIFICATE
MBEDTLS_SSL_RENEGOTIATION
MBEDTLS_SSL_CONTEXT_SERIALIZATION
MBEDTLS_SSL_EXTENDED_MASTER_SECRET
MBEDTLS_ECDSA_C
MBEDTLS_ECDSA_DETERMINISTIC
MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED
MBEDTLS_DHM_C
MBEDTLS_KEY_EXCHANGE_DHE_PSK_ENABLED

Application is getting stuck at " <= write" after the handshake.

/workspace/lib/MQTT-TLS/src/mbedtls/library/ssl_msg.c:1776: <= fetch input
/workspace/lib/MQTT-TLS/src/mbedtls/library/ssl_msg.c:1014: => decrypt buf
/workspace/lib/MQTT-TLS/src/mbedtls/library/ssl_msg.c:1539: <= decrypt buf
/workspace/lib/MQTT-TLS/src/mbedtls/library/ssl_msg.c:3620: <= read record
/workspace/lib/MQTT-TLS/src/mbedtls/library/ssl_tls.c:2950: <= parse finished
/workspace/lib/MQTT-TLS/src/mbedtls/library/ssl_cli.c:4192: client state: 14
/workspace/lib/MQTT-TLS/src/mbedtls/library/ssl_cli.c:4291: handshake: done
/workspace/lib/MQTT-TLS/src/mbedtls/library/ssl_cli.c:4192: client state: 15
handshake done, ret = 0
tls connected
netWrite!!
/workspace/lib/MQTT-TLS/src/mbedtls/library/ssl_msg.c:5339: => write
/workspace/lib/MQTT-TLS/src/mbedtls/library/ssl_msg.c:2369: => write record
/workspace/lib/MQTT-TLS/src/mbedtls/library/ssl_msg.c:0546: => encrypt buf
/workspace/lib/MQTT-TLS/src/mbedtls/library/ssl_msg.c:0990: <= encrypt buf
/workspace/lib/MQTT-TLS/src/mbedtls/library/ssl_msg.c:1789: => flush output
/workspace/lib/MQTT-TLS/src/mbedtls/library/ssl_msg.c:1807: message length: zu, out_left: zu
/workspace/lib/MQTT-TLS/src/mbedtls/library/ssl_msg.c:1814: ssl->f_send() returned 46 (-0xffffffd2)
/workspace/lib/MQTT-TLS/src/mbedtls/library/ssl_msg.c:1842: <= flush output
/workspace/lib/MQTT-TLS/src/mbedtls/library/ssl_msg.c:2514: <= write record
/workspace/lib/MQTT-TLS/src/mbedtls/library/ssl_msg.c:5363: <= write