You can try to recover the damaged one, no guarantees it will work .
sqlite3.DatabaseError: database disk image is malformed - Configuration - Home Assistant Community
But… as you already mentioned, since it is just a week’s data, likely not worth the effort.
Is there any correlation between the moment that you (or something else) performed an action and the error in the log? I believe arond 4 is the purge (which you see in the log too). For me it would be unexpected to have stats-repair cause this but you can try to do this stats stuff again and see what happens.
I myself have seen and lived it when accessing the db from another tool, e.g. dbbrowser.