Avoiding file crashing on SD

It is known that in case of unexpected power loss some files can be damaged during write operation.
So what solutions do I have to prevent file damaging?

I found the only way to use littlefs filesystem format.
Please give me some adwise in case there are other solutions.
I use RT1062 module in my project and there is cases when power off unexpectedly

Hi, littlefs is the only way. FAT file systems are not protected during power loss and can be corrupted.

It’s a challenge to access a littlefs partition on a PC. You’ll need special tools installed to do so.