Are the two CIA chips the same in the A4000? If so then try swapping them and rerunning diagram to see if the problem follows the CIA or stays with Chip B. This will help show if it's the chip or something else.
I hope it's the chip as it should be quite easy and cheap to replace.