That error appears to be a database error.
Edit: Also, based on what I posted yesterday:
What platform version are you running? And, I know you have some Xiaomi/Aqara devices - have you updated those drivers to the latest (especially if you're using 2.2.3.118 or later).