I don't know where the settings went wrong. The set reference pictures were lost after reopening the document. Every time, the reference pictures were set again.
Do you mean the background images are disappearing with the source files or with your files? Also which version of Blender are you using?