Hi TSchnee,
I am Dave, I will help you with this.
Rest assured, an M.2 SSD is non-volatile memory, it does not need to be continually powered, so you will not loose any date if you disconnect the M.2 SSD while performing that work, you do not need to worry about that.