I'm into the computer business for many years already, and I still own programs I downloaded in 1995 or before that.
But I do notice that harddrives do tend to get corrupted over time.
SD cards the same, but more because of multi read/writes rather than because of keeping data static.
USB flash drives have served me well to keep my most important data saved.
They can keep files for decades without corrupting.
I still have some files on my first USB flash drive ever, a 128 MB drive I bought in 2000-2001.
And it still works wonders, albeit a bit slow, as it's a USB1 drive.