Unfortunately, there is no guaranteed way to restore game data on a PS3 if you eject the disc while it's saving. Here's why data loss happens and what you can try.
Incomplete Saves: When you eject the disc during a save, the game doesn't have time to properly finish writing data to the console's hard drive. This often results in a corrupted save file.
PS3 Design: Unlike some modern consoles, the PS3 doesn't automatically create backups of save files.
Important: Be cautious when experimenting with save files. Incorrectly editing or deleting them can cause further damage.
Remember, data recovery is not always successful. The best approach is to avoid interrupting save processes to prevent future data loss.