DB log error

I am getting log errors that I don’t know how to fix. I use Maria DB add-on.

Logger: homeassistant.components.sql.sensor
Source: components/sql/sensor.py:149
Integration: sql (documentation, issues)
First occurred: 2:21:02 PM (1 occurrences)
Last logged: 2:21:02 PM

Error executing query SELECT table_schema "database", Round(Sum(data_length + index_length) / 1024 / 1024, 1) "value" FROM information_schema.tables WHERE table_schema="homeassistant" GROUP BY table_schema LIMIT 1;: Can't reconnect until invalid transaction is rolled back. (Background on this error at: https://sqlalche.me/e/14/8s2b)