When the macOS Catalina runs into a problem at the end of your installation and gives an error message, restart the desktop or laptop and press Common + Option + R as it boots up to recover the system online.