Connection() error occurred during connection handshake: remote error: tls: unrecognized name

I have one Dedicated cluster on the atlas. I am trying to add a database trigger. so I need to link the data source to select the cluster for the trigger. so when I am trying to link data source for the actual-development cluster but it gives the following error:

error creating the datasource configs: failed to verify data source connectivity: error connecting to MongoDB service cluster: failed to ping: connection() error occurred during connection handshake: remote error: tls: unrecognized name