How are you connecting the AN1x to your computer.
I suspect it's via a USB to MIDI adapter.
The trouble with many lower cost adapters is that they're not really very well coded.
All sorts of messages can get garbled, especially SysEx messages.
It's really worth while going for a quality adapter which comes with it's own MIDI driver firmware.
That could well solve your problem.
Also setting buffer sizes for send and receive within Logic may make a difference, especially again for SysEx messages.