Hi @preettyy_312024 ,
You need to create the subflow as below shown in image.
You need to you Onblock error ,inside the onblock error you need to do all the activities related to browser login and onblock error advance setting you need to set is as if it fails it need to go to end of the block.

Once it reaches End of the Onblock error,you need to set up the error handling like this. In retry variable you can be it as 3.If the runs are less than 3 it will close the browser and do the same process again and if it is more than 3 it will run the System exception mail subflow.

The system exception email subflow will capture the Screenshot and send an email to respective spocs.

(Note:- if you got your solution you can mark as solution and gives kudos)
Thanks & Regards
Vishnu Reddy