Stop using the device to prevent further overwriting of files, assess the extent of the data loss, and consider whether professional assistance is necessary.