If God must be omniscient, God doesn’t exist
The statement is only generates a contradiction if there is an omniscient being. If there are no omniscient beings, it is consistent.
The idea is that it is impossible for a being to both know and not know something. Knowable is not the same as known to a particular being