Have you allowed access for DEVONthink to Contacts in System Preferences > Security & Privacy > Privacy?
You should also allow Full Disk Access and any Automation requests DEVONthink makes.
Regarding Firefox, Full Disk Access may help, but it handles its bookmarks in its specific way. This may help as well…