Do a backup, then restore.on the new one.
I suggest an SSD in a USB carrier, connected to an external USB hub that has a separate power supply… This powers the ssd from not the pi supply.
If you are doing another SD card, industrial grade class 10 and from a reputable supplier. And given some time it will fail again. They are not made for the write-write action of a database.
I rebuilt my system on an Intel NUC, restored from backup. I still see the error. There seems to be no definitive answer to this, at least in the HA community. Can someone provide some insight as to why this happens at all?
Thanks.