How is this a security issue compared to NAND flash which retains data for months and years? You just treat it similar to NAND flash when it comes to end of life decomissioning.
And just like SSDs for high security environments they can probably implement transparent encryption and just reset the key.
It's the same risk as any memory -- nation-state attackers already have tools to steal data from DRAM (thermal, capturing during early boot, plain old DMA via "trusted" ports, ...). Since mainstream modern CPUs already have support for encrypted memory built into their DRAM controllers, there is no special additional effort needed to mitigate.
And just like SSDs for high security environments they can probably implement transparent encryption and just reset the key.