Ps. 147:5 says his understanding (TaBUN) is uncountable (MiShPaT), not that his knowledge ((Da'aT) is infinite (MiShPaR).
In Job 36:4 the Hebrew word TiMiYM translated above as "perfect", has a range of meanings.
1. complete, entire, sound, whole
A. complete, whole, entire
B. whole, sound, healthful
C. complete, entire (of time)
D. Sound, wholesome, unimpaired, innocent, having integrity
E. What is complete or entirely in accord with truth and fact
Why do you insist TiMiYM must mean complete, and that complete must include foreknowledge of all future details? Why not "For truly my words are not false; One who is sound (TaMiYM) in knowledge (De'UT) is with you. Behold, God is mighty, and does not despise any; He is mighty in strength of understanding (LeB heart))
Also, is this not Elihu referring to himself, rather than to God? here Is Elihu really claiming omniscience? Why is this not saying that Elihu considers himself to be sound in understanding?
You seem to be constricting meanings arbitrarily and ignoring context to make your kind of God appear in the book of Job.