I have written the following linked tips on how to avoid major losses of work, when working with Krita, several times here in the forum, maybe you consider implementing such a workflow for securing your work done in Krita?
If you then add an additionally automatic backup, like Takiro mentioned, you can raise that level of security even further.