I also had the problem when entering an invalid URL e.g. https://example.com/doesnotexist.
Uncaught Error: Call to undefined function MBTM\get_current_screen()
in /home/web/example.com/public_html/wp-content/plugins/meta-box-aio/vendor/meta-box/mb-term-meta/src/MetaBox.php on line 74
I had both plugins installed
Meta Box 5.10.12
Meta Box AIO 2.3.1
Disabling Metabox 5.10.12 resolved the issue and invalid URL was redirected to 404 page. Since Meta Box AIO 2.0.0 you do not need the framework plugin installed https://metabox.io/meta-box-aio-includes-framework/