"Your GOG account and GOG content are personal to you and cannot be shared with, sold, gifted or transferred to anyone else."
It may not be legal, as I said.
So you CAN pass your collection over to your heirs on an hard disk.
Whether this is legal it’s a different matter.
GOG is very clear on this: you CANNOT provide the installers to anybody, those are for yourself only. It is easier, for sure.
It's still a terrible situation that should be solved legally.