I got the same problem (twice!). I had to reinstall WordPress because of this on my host. Below are the details. Let me know if you need more details.
[Tue Oct 15 20:49:13.373397 2024] [php7:error] [pid 3891] [client 192.168.8.201:54112] PHP Fatal error: Uncaught Error: Class ‘WP_Block_Pattern_Categories_Registry’ not found in /var/lib/wordpress/wp-content/themes/bold-photography-blocks/inc/block-patterns.php:40\nStack trace:\n#0 /usr/share/wordpress/wp-includes/class-wp-hook.php(286): bold_photography_blocks_register_block_patterns(”)\n#1 /usr/share/wordpress/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array)\n#2 /usr/share/wordpress/wp-includes/plugin.php(453): WP_Hook->do_action(Array)\n#3 /usr/share/wordpress/wp-settings.php(467): do_action(‘init’)\n#4 /usr/share/wordpress/wp-config.php(59): require_once(‘/usr/share/word…’)\n#5 /usr/share/wordpress/wp-load.php(37): require_once(‘/usr/share/word…’)\n#6 /usr/share/wordpress/wp-admin/admin.php(31): require_once(‘/usr/share/word…’)\n#7 /usr/share/wordpress/wp-admin/index.php(10): require_once(‘/usr/share/word…’)\n#8 {main}\n thrown in /var/lib/wordpress/wp-content/themes/bold-photography-blocks/inc/block-patterns.php on line 40