how do I solve Installation failed: There has been a critical error on your website

It happens in some minor cases. If you have a fresh WordPress installation, then install and Activate the WP Reset plugin from Plugins > Add New. Head over to Tools > WP Reset and then at the end of the page, type on Reset in the given box and click on Reset. This will reset your WordPress installation’s database and some other things.

Similarly, go to other pages of the plugin, and reset all the things back to default by a click. It’ll be easy and the issue will go away.

Tip: This issue happens mostly in new WordPress installations and in some cases in abandoned installations.

Another alternative method which you can use is the WordPress Database Repair function. This function is built-in and will check and repair the installation’s database. To do this, you can check the WPBeginner’s guide here.

These solutions worked for me and some other thousands of people so there is a possibility for you also.