Issue Running Composer Command for Chrome-PHP on CyberPanel

I’m experiencing an issue when trying to run the following Composer command:
sudo composer require chrome-php/chrome
No matter what I try, I consistently encounter the error:
“Chrome process stopped before startup completed.”
example code :

<?php

// Include Composer's autoloader
require 'vendor/autoload.php';

use HeadlessChromium\BrowserFactory;

try {
    // Create a BrowserFactory instance
    $browserFactory = new BrowserFactory();

    // Create a new browser instance
    $browser = $browserFactory->createBrowser([
        'headless' => true, // Run in headless mode
        

    ]);

    // Create a new page and navigate to an URL
    $page = $browser->createPage();
    $page->navigate('http://example.com')->waitForNavigation();

    // Wait for 10 seconds to ensure dynamic content is fully loaded
    usleep(10000000); // 10 seconds in microseconds

    // Get the page title
    $pageTitle = $page->evaluate('document.title')->getReturnValue();
    echo "Page Title: $pageTitle\n";

    // Take a screenshot
    $screenshot = $page->screenshot([
        'format' => 'jpeg', // Screenshot format
        'quality' => 80,    // Quality of the screenshot
    ]);

    // Save the screenshot to a file
    $screenshot->saveToFile('screenshot.jpg');
    echo "Screenshot saved as screenshot.jpg\n";

    // Close the browser
    $browser->close();
} catch (Exception $e) {
    echo "An error occurred: " . $e->getMessage() . "\n";
}

I’ve attempted this with different browsers and various approaches, but the problem persists. Interestingly, when I try the same command outside of the CyberPanel environment, it works perfectly fine, which leads me to believe that the issue might be related to CyberPanel.

Could you please assist in identifying the cause of this issue and suggest a solution?