Dunno about X1 or Switch...
But I remember seeing claims of about 50% of sales (don't remember revenue or quantity) was digital (and for that you would have something about 30% of retail games digital 70% physical and of course 100% of PSN games being digital)
Hope this help you on order of magnitude.
duduspace11 "Well, since we are estimating costs, Pokemon Red/Blue did cost Nintendo about $50m to make back in 1996"
Mr Puggsly: "Hehe, I said good profit. You said big profit. Frankly, not losing money is what I meant by good. Don't get hung up on semantics"
Azzanation: "PS5 wouldn't sold out at launch without scalpers."