How money does it cost to apply for a patent?. Because if the cost is negligible, then an exploit would be to flood the patent system with dumb patent application until one of them is accepted. Hell, maybe a machine learning algorithm could be trained to produce trillions of gibberish pdf files, until one of them makes sense, then you can claim the invention.
The patent system requires people to review the patents before they are accepted. Overloading patent reviewers with garbage patents isn't going to do you any favors. It'd be a bit like DDOS'ing yourself...