It’s not a huge issue having excess wood in late game.
Usually, you ask yourself the following
Do you have enough farms to sustain knight production?
Enough stables?
In team games you can set up trade with markets
Did you get your eco upgrades
Typically for late game cav civs, you can go about 70 farms, 35 lumberjacks, 30-40 gold miners/trade carts to sustain knight line production.
I’m no math expert but typically you can sustain about 10-15 stables with this build
It’s fine having excess wood, gold, stone in late game but not early game.
Use you food as much as you can and get upgrades.
Make sure you always try to be 200 pop (or your max pop)