Error help. Recorder?

Can someone help me with this error message that I am getting repeately.

[SQL: INSERT INTO events (event_type, event_data, origin, time_fired, created, context_id, context_user_id) VALUES (?, ?, ?, ?, ?, ?, ?)]
[parameters: ('state_changed', '{"entity_id": "light.front_table_light", "old_state": {"entity_id": "light.front_table_light", "state": "on", "attributes": {"brightness": 255, "frie ... (460 characters truncated) ... :00", "last_updated": "2020-05-24T19:08:26.029634+00:00", "context": {"id": "1ee17b6c853c4de8abb06708027ad3fc", "parent_id": null, "user_id": null}}}', 'LOCAL', '2020-05-24 19:08:26.029730', '2020-05-24 19:08:26.043915', '1ee17b6c853c4de8abb06708027ad3fc', None)]
(Background on this error at: http://sqlalche.me/e/4xp6) (Background on this error at: http://sqlalche.me/e/7s2a)
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/recorder/__init__.py", line 372, in run
    self.event_session.flush()
  File "/usr/local/lib/python3.7/site-packages/sqlalchemy/orm/session.py", line 2496, in flush
    self._flush(objects)
  File "/usr/local/lib/python3.7/site-packages/sqlalchemy/orm/session.py", line 2592, in _flush
    subtransactions=True
  File "/usr/local/lib/python3.7/site-packages/sqlalchemy/orm/session.py", line 947, in begin
    self.transaction = self.transaction._begin(nested=nested)
  File "/usr/local/lib/python3.7/site-packages/sqlalchemy/orm/session.py", line 316, in _begin
    self._assert_active()
  File "/usr/local/lib/python3.7/site-packages/sqlalchemy/orm/session.py", line 295, in _assert_active
    code="7s2a",
sqlalchemy.exc.InvalidRequestError: This Session's transaction has been rolled back due to a previous exception during flush. To begin a new transaction with this Session, first issue Session.rollback(). Original exception was: (sqlite3.DatabaseError) database disk image is malformed
[SQL: INSERT INTO events (event_type, event_data, origin, time_fired, created, context_id, context_user_id) VALUES (?, ?, ?, ?, ?, ?, ?)]
[parameters: ('state_changed', '{"entity_id": "light.front_table_light", "old_state": {"entity_id": "light.front_table_light", "state": "on", "attributes": {"brightness": 255, "frie ... (460 characters truncated) ... :00", "last_updated": "2020-05-24T19:08:26.029634+00:00", "context": {"id": "1ee17b6c853c4de8abb06708027ad3fc", "parent_id": null, "user_id": null}}}', 'LOCAL', '2020-05-24 19:08:26.029730', '2020-05-24 19:08:26.043915', '1ee17b6c853c4de8abb06708027ad3fc', None)]
(Background on this error at: http://sqlalche.me/e/4xp6) (Background on this error at: http://sqlalche.me/e/7s2a)

I have the same problem since yesterday. The recorder does not work anymore. It happened when I was on on HA 0.110.3.
Strangely, the problem persists even after restoring HA to an earlier backup.