Hi @Khokhar GS
Refer to the below thread it will help you.
https://github.com/MicrosoftDocs/azure-docs/issues/33632
https://learn.microsoft.com/en-us/answers/questions/219485/azure-bastion-connection-error.html
Guided steps
Tutorial: Configure Bastion and connect to a Windows VM through a browser
If the Answer is helpful, please click Accept Answer
and up-vote, this can be beneficial to other community members.