Well, I didn't fix it, but I was able to workaround this by commenting out the offending code. My site and admin pages now come up successfully.
I commented out the following lines (90-92 in my file) in /ocartdata/storage/vendor/twig/twig/src/Loader/FilesystemLoader.php:
$checkPath =...