I've not been able to reproduce this failure locally even while playing with different usecases of attachment removal. My guess right now is that the error happened during a bad state of the cluster. I will reopen if I see again that issue.
This message was sent by Atlassian Jira (v9.3.0#930000-sha1:287aeb6)
If image attachments aren't displayed, see this article.