I don't know what the solution is because a lot of these functions would require complex DRM systems to make a digital product behave anything like a physical one. So legislating to enforce digital consumer rights is effectively legislating for DRM everywhere. The crypto dream of tying every digital good to a token or NFT was effectively an implementation of this kind of DRM using blockchain. However many digital storefronts already implement complex DRM systems, so perhaps at least enforcing some kind of right to return digital goods (including game MTX) would be beneficial.
AFAIK, anyone with an old disc of Assassin's Creed 2 for Xbox 360 will still be able to play the single-player this Thursday. A disc for The Crew will become just junk when the server is killed.