Studio closed the active project due to a critical internal error. You may retry to open the project?

Hey @AbdurRehman98 can you try with these options maybe it work.
1- try to run UiPath through administrator.

2- Review the logs for more details on the error. You can find them in the Logs folder in your project or by going to C:\Users<YourUsername>\AppData\Local\UiPath\Logs.

3-take backup of project.json file of your project .then delete then json file and open the process from the main xaml file. might be corrupt json file give you error.

cheers