Testing a 24V 40W LED lamp with constant current LED driver
This driver should work fine.

With the dim wires left open it will supply 1.67A and up to a forward voltage of between 14.4v and 24V.

I suspect your problem is the 0-10V supply circuit.
I do not know what that looks like so I cannot help there.

When I use an HLG with the 0-10v dimming I use a variable bench supply and it always works perfect.  

You can easily test by using various batteries for the 0-10v input. 

Post your 0-10v dimmer circuit.