I mean, as long as you don't give Steam any personally identifying info and make sure that your beneficiary has your password and 2FA, I don't really see how that's enforceable.
It's still not unreasonable in my opinion to have a legal route to pass our digital property down. Here we're talking about steam, a relatively good company, imagine what EA or Ubisoft would do without legal protections.