After MongoDB v5.x to v6.x upgrade, getting replica set network errors

Replica set with combination of GCP servers and on-prem server
Current version: 5.0.20
GCP running on Centos 7.9
On-prem running on Redhat8
After upgrading to MongoDB v6.0.14, getting network error on the on-prem server
GCP servers can communicate with each other, but the on-prem server can’t communicate with the GCP servers.
Getting network error.
I downgrade the on-prem server to v5.0.20 again and it can communicate with the GCP servers again.

{“t”:{“$date”:“2024-03-26T08:22:42.717-04:00”},“s”:“I”, “c”:“CONNPOOL”, “id”:22566, “ctx”:“ReplicaSetMonitor-TaskExecutor”,“msg”:“Ending connection due to bad connection status”,“attr”:{“hostAndPort”:“”,“error”:“CallbackCanceled: Callback was canceled”,“numOpenConns”:1}}
{“t”:{“$date”:“2024-03-26T08:22:42.717-04:00”},“s”:“I”, “c”:“CONNPOOL”, “id”:22576, “ctx”:“ReplicaSetMonitor-TaskExecutor”,“msg”:“Connecting”,“attr”:{“hostAndPort”:“”}}

Can someone please help ?

Thanks !