Hello there! I'm sorry to hear that you're experiencing screen freeze issues with your Samsung A52. It seems like you've already tried several troubleshooting steps, including reinstalling apps, clearing the app cache, clearing the cache partition, and performing a factory reset. The fact that the issue persists even in safe mode suggests that it might be a hardware problem.
Here are a few additional steps you can try before concluding that it's a hardware issue:
1. Check for software updates: Make sure your device is running on the latest software version available. Sometimes, software bugs can cause screen freeze issues, and updates can fix them.
2. Wipe cache partition: While you've already tried this, it's worth mentioning again. Turn off your phone, then press and hold the Volume Up and Power buttons simultaneously until the Samsung logo appears. Release the buttons, and you'll enter the recovery mode. Use the volume buttons to navigate to the "Wipe Cache Partition" option and select it using the Power button. Reboot your device afterward.
3. Perform a factory reset from recovery mode: This step is different from the factory reset you've already done. In recovery mode, select the "Wipe data/factory reset" option and confirm. Be aware that this will erase all data on your device, so make sure to back up everything important beforehand.
If none of these steps resolve the issue, it's likely that there is a hardware problem with your Samsung A52. In that case, it's best to reach out to Samsung's customer support or your nearest service center for further assistance. They will be able to examine your device and provide a proper diagnosis.
I hope this helps, and I wish you the best of luck in getting your screen freeze issue resolved!