If the Bobcat 334 runs fine when cold but starts stalling once the hydraulic system gets hot, I’d suspect a problem that becomes worse as the oil temperature rises. A good place to start is checking the hydraulic oil level and condition, filters, and whether the hydraulic system is running at the correct pressure.
I’d also check for a hydraulic pump that is becoming inefficient or starting to bind when hot, as well as a relief valve that may be sticking or set incorrectly. If the engine bogs down specifically when you operate the hydraulics, compare engine RPM/load with hydraulic pressure while the machine is hot.
Don’t overlook the engine side either—fuel restriction, overheating, or a weak fuel system can also cause stalling under hydraulic load.
The most useful test would be to determine whether the engine stalls because the hydraulics are putting excessive load on it, or because the engine itself is losing power when hot. If you post the fault codes, hydraulic pressure readings, and what functions cause the stall (boom, bucket, travel, etc.), it should be easier to narrow it down.