I have a forklift with a commercial slant 6

If the compression test is good is this still a possibility or not?

Oh yea.
It could be holding the valves open when warmed up if they are tight.
When it's cool enough to do a comp test they are closing all the way again so the comp reads fine.
Totally possible.

If this is the cause it probably just needs the valves adjusted.