I also have faced this problem. When working on the software, there's zero error, even switching between databases, etc. But once you save everything and close the software and reopen it, it shows the databases (whatever I have opened restored previously) on the left panel, but all of them are inactive. When I double click to expand any of them, it throws the same erorr.
Plus, I can't restore any new database file too; as it says, failed to restore database. Unless I reinstall it, it doesnt work. As soon as I re-install it, everything works fine.
Someone suggested in some other answer (who also faced the same problem) that delete the log folder of that particular database from the installation directory of openlca and then restart the software. It worked for them.
The link to that question and reply: (
https://ask.openlca.org/7158/can-not-open-database-anymore-openlca2-0-3)
It's quite a common problem.