Collected data is dissapiered

Hi all. I run HA for a few mounts now.
Im using a MQTT addon to connect devices to HA so i can control and collect data.

Just notice after update and restart that i have no data before May 19-th.
Whu this happen?
Is this happening in every Restart or Update?
Can i prevent it in feature?
Did i hit some kind of limit?
Is there a option so this do not happen anymore?

Your database has become corrupt. it may be possible to recover it. Or you could restore a backup made before the update.

No.

Creating a backup before updating would be some insurance against this.

How big is your database?

Backups.