Another problem that causes this, from time to time, is wear on the cocking levers.This results in the "hammers" not being moved back, until the gun is opening. Whatever the cause, it should be repaired quickly or the gun can be damaged.In my experience, some Spanish guns have "soft"parts, causing various problems.I don't remember this being true in AYA, however.
Mike