No laws are needed. We already have oligopolies. Don't like the buggy software? Go to the only other competitor who also has buggy software.
FFS, we're living in a world where Linux has more than doubled in popularity mainly due to Microsoft actively fleecing their customers. It's crazy
/I use arch btw (and have been on it for over a decade)