I am not from Laminar Research; just a flight simmer.
Have you completely deleted your old files or are they parked in a recovery directory somewhere in your system?
On the basis they are in a recovery directory restore to your old location. Provided X-Plane is in a complete format after restoration ie not mixed within other directories such as your operating system, then perform a simple "cut" from your old location and "paste to your new M.2 drive. A simple operation as X-Plane has this unique arrangement of being a standalone directory unlike other flight sim packages loading all over your file structure/system like a "dog's breakfast"
If your system is lost, good luck with somebody helping otherwise you will have to start the configuration all over again.