How do I stop my iPhone auto-deleting my files?

Solution 1:

Can you try disabling iCloud syncing for the said app, if it doesn't trouble you much ?

iBooks for iPhone showed the same behaviour, automatically deleting books despite available storage. I had to turn off iCloud for iBooks .