At least with the PS3, I seem to recall that I couldn't extract any of my games' save data from the hard-drive of my PS3 unit that went dead due to RROD (or was it YLOD?) because the hard-drive was encrypted using the PS3's serial key as part of the encryption.
I don't know if that mechanism persists into the PS4/PS5.
I don't know if that mechanism persists into the PS4/PS5.