The S24 Ultra offers a "High Efficiency Pictures" mode. This saves photos as HEIC, saving you gigabytes of space over a year.
However, Samsung's HEIC implementation can be buggy with some Windows apps. If you are struggling to view your gallery backup, batch converting to JPG is the safest bet for long-term archiving.