Additional uncaught exception thrown while handling exception.

Original

Drupal\Core\Extension\InfoParserException: The 'core_version_requirement' constraint (9.2.21) requires the 'core' key not be set in core/profiles/testing_inherited/modules/child_profile_module/child_profile_module.info.yml in Drupal\Core\Extension\InfoParserDynamic->parse() (line 88 of /var/www/html/abc/docroot/core/lib/Drupal/Core/Extension/InfoParserDynamic.php).

Drupal\Core\Extension\InfoParserDynamic->parse() (Line: 22)
Drupal\Core\Extension\InfoParser->parse() (Line: 88)
drupal_required_modules() (Line: 1132)
install_profile_info() (Line: 1290)
_install_select_profile() (Line: 456)
install_begin_request() (Line: 115)
install_drupal() (Line: 48)

Additional

Error: Call to undefined function Drupal\Core\Render\system_page_attachments() in Drupal\Core\Render\BareHtmlPageRenderer->renderBarePage() (line 65 of /var/www/html/abc/docroot/core/lib/Drupal/Core/Render/BareHtmlPageRenderer.php).

Drupal\Core\Render\BareHtmlPageRenderer->renderBarePage() (Line: 76)
Drupal\Core\ProxyClass\Render\BareHtmlPageRenderer->renderBarePage() (Line: 1052)
install_display_output() (Line: 271)
_drupal_log_error() (Line: 330)
_drupal_exception_handler()