Hi @Prasanth_R1,
Welcome to the MongoDB Community.
Based on the error stack trace, it seems that the issue is originating because your IP is not being whitelisted in MongoDB Atlas. Therefore, this causes the SSL handshake to fail. Could you please verify it and try again?
Also, you can refer to a similar thread here: Error while connecting my database through Mongodb compass
I hope it helps!
Best regards,
Kushagra