Question: where are xmp files stored?
Answer: To avoid file corruption, XMP metadata is stored in a separate file called a sidecar file. For all other file formats supported by Lightroom Classic (JPEG, TIFF, PSD, and DNG), XMP metadata is written into the files in the location specified for that data.