there are companies who try to produce exactly this, gadgets that indeed do a better job of managing all this problems. Only they are technically not always up to the standard, quite expensive and of course not very often sold (fairphone is such an example which does come to mind).
For myself I have 'solved' such issues only to a certain degree: I buy only what I really need (or at least think, that I need it) and thereafter do use it as long as possible or giving it away to somebody who can use it even if it's technologically outdated (so my first computer made it at least a dozen years, given to a friend, who gave it a few years later one to somebody else, who did the same ... and than I lost track of it).