Hello,
I tracked down this bug to the function next_week_start in the file src/API/Reports/TimeInterval.php. I replaced the function next_week_start with the one from the older version of WooCommerce. It seems the new version this function somehow creates a neverending loop.
No more PHP Fatal error: Maximum execution time of 30 seconds exceeded in /public_html/wp-content/plugins/woocommerce/src/Admin/API/Reports/TimeInterval.php on line 332