Hello, this usually occurs due to interrupting the data whilst it is in the process of downloading or saving. In this instance There is not much that you are able to do, however you could try load a previous backup, however this would mean all your most recent photos and videos may be lost. Alternatively in the My Files app, your device will have automatically saved the files just before they corrupted. you may manually screenshot or screen record these if you are unable to uncorrupt the native files.
Also the device you refer to is an A54, not and S54, the Galaxy S54 (if ever released) would be released in 2054. The Galaxy A54 was released 2 years ago.