Generally speaking, any mobile phone repair is risky for data loss.
The data is stored in the hard disk of the motherboard. Replacement of external parts (such as common batteries, screens, etc.) usually does not move the data inside the phone. “I’m not afraid of 10,000, I’m afraid of just in case.” I am most afraid of accidentally damaging the motherboard during maintenance, resulting in data loss or failure to boot.
Therefore, Rian will still recommend that you should keep the backup habit before repairing, or even usual.