Empty the rifle, then point it in a safe direction.
With your thumb restraining the hammer, pull and hold the trigger rearward. Slowly let the hammer fall. Are there any rough spots? Repeat with and without holding the lever tightly closed.
I'll bet something is resisting the hammer fall, and that causes the top to fold over.
Andy