What is happening
QGIS documents QGS as XML and QGZ as a ZIP archive containing the project and optional QGD auxiliary database. QGS saves can create a same-folder QGS~ backup. A project can open while external layers remain broken or while auxiliary labels and properties are missing.