Bad valve guides typicaly show up as blue smoke on a cold start, especially if sitting overnight,
or longer. Also, if idling for a minute or two at a light, as you pull away, again, if the guides are
bad, you'll see blue smoke from the exhaust. What the OP has described does not match typical value guide symptoms.
Can't guess what caused all that the sludge in your car.
There were sludge problems in the 3.0 liter 2000-2004 Avalons, not to mention
similar period Chrysler 2.7L motors; the sludge can kill the engine - essentially oil starvation.
I had a bad case of sludge in my very first car - an ancient '56 Ford V8.
The cure" was an old-fashioned, cheap, fast, and (very) dirty method of removing built-up
contaminants -as in sludge- and even today should not hurt anything:
OTOH, maybe I'm 1,000% wrong about that.
"You pays your money and you takes your chances".
Since you've already used sea-foam in the oil, you understand the basic idea.
Now really do the job.
(A) Drain the existing oil, and refill with 80% / 20% || Oil / Solvent
(We used Kerosene - and it's still a good choice)
So if the car takes 5 quarts of oil, then 4 quarts oil + 1 quart Kero.
Now run the car at idle only for a 5-10 minutes until oil is hot, drain mixture -plus 2 quarts
of suspended sludge- out,
--- You *might* even want to do (A) twice, depending on how black & heavy the oil+sludge you take out on the first run is -- -
(B) Put in a new oil filter, refill with 5 quarts fresh oil, NO SOLVENT, run at idle until oil is hot again, drain oil again, toss out filter,
(C) Install 2nd new filter, and fill with good oil,
(D) if you feel it's a good idea, go for a 3rd change w/new filter.
Most (but not 100%) of the sludge will be gone, now see how she runs.
Hope this helps and no one goes ballistic on me.. though full of electronics, these are just cars, not Princesses.
This time it's different!