I fixed the problem. The other head unit's memory wire was connected to ignition all along. But it was attached via the Ai-Net bus to an equalizer in the trunk which had its own memory wire, so the EQ was supplying the head units memory via the bus cable.

I fixed the head unit wiring, and everything works properly now.