I've noticed that Proverbs and Ecclesiastes have shockingly differing views of wisdom and knowledge:
“Her [wisdom and understanding personified] ways are pleasant ways and all her paths are peace.” Proverbs 3:17
“Because in much wisdom there is much grief, and increasing knowledge results in increasing pain.” Ecclesiastes 1:18
Clearly peace is not the same thing as grief, nor is pain the same as pleasant. Considering that there is no argument over that, what then make sense of these two verses. Can they both be true at the same time? Is wisdom and understanding a grievously pleasant and peacefully painful thing? Are we supposed to do the math and determine that wisdom is just average then in every regard?
How can these two verses be understood so that they are both true, but can be in harmony with each other and not be a ridiculously obvious contradiction?