The problem is that the patent office is a papermill and the number of patents being granted has be growing at around 5% a year compounded for the last 25 years. I'm pretty certain that the number of patentable inventions found each year is not growing at 5%. Instead the definition of what is patentable keeps expanding into areas where it doesn't belong. The growth mainly benefits patent lawyers and patent office employees. We've gone from granting 100,000 patents a year 20 years ago to 300,000 a year now.
Do a little projecting out - if that same growth is maintained in 20 years they'll be granting 900,000 patents a year. And we'll have a pool of 12 million active patents to deal with. To support all that you'll need 25,000 or more examiners. Of course patent infringement lawsuits will be totally out of control - no human can be expected to know the contents of 12M patents and not infringe on them. Heck, I can only read three or four before my head explodes.
The simple fix is to limit the patent office to granting a fixed number of patents each month. And I'd set that limit at 10,000 or less per month. Doing that stabilizes the number of employees at the patent office. And do you really believe there are 10,000 inventions made each month worthy of patent protection? I sure don't believe that there are that many. I'd set the limit even lower - 5,000 or less. Setting the limit lower simply gets rid of the junk and makes the ones that do get granted more valuable.