If you get the following error, probably it is a plugin conflict. There is a plugin which is using improperly the wp_lazy_loading_enabled filter:

PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function Swift_Performance_Asset_Manager::{closure}(), 1 passed in /www/wp-includes/class-wp-hook.php on line 287 and exactly 2 expected in /www/wp-content/plugins/swift-performance/modules/asset-manager/asset-manager.php
​You should deactivate your plugins one by one to find which one cause the issue. If you fount it, you can contact to the plugin author to fix the issue. Please note, may your theme is using this filter as well.
If you find the problematic plugin (or the theme cause the issue), you can try disable lazyload related features in it as a quick fix.