If our device works slowly or your files are being deleted or damaged automatically then maybe your devices need to do database rebuilding.
Turn off the PS5 console
Long press the power button until second beep
By using the USB cable, connect the controller to the gaming system
Select the "Rebuild Database" in safe mode menu
Lastly click "Ok" to restart
These are some easy steps to rebuilding database.
To know more: https://webknow.net/how-to-rebuild-database-in-ps4-ps5