@Apoorva P , can you please share the detailed steps or if you are following any documentation to get this setup done with us so that its easier for us to help you fix this.
Are you trying to connect to Sharepoint Online using Service Principal and Certificate?
Please do help us with some more insights to help you better.