
Error 10040 is Winsock's WSAEMSGSIZE — "message too long." It means LightJams is sending a single OSC UDP packet that's bigger than the receive buffer your OSC router has allocated for that socket, so the packet gets truncated/rejected on the way in.
This typically happens when LightJams bundles a large number of OSC messages into one OSC Bundle and fires it as a single UDP datagram — if that bundle exceeds your router's buffer size (many apps default to something small, like 1024 or 4096 bytes), you get exactly this error.