Cannot create snapshot of aggreate

axon 4.12.1 with mongo-extension 4.12.0
There is a problem with creation of snapshot of an aggregate
There error message is as below

An attempt to create and store a snapshot resulted in an exception. Exception summary: An event for aggregate [3ac0f54a-bd33-4971-82a2-a3729e1be2f6] at sequence [16461] was already inserted

It is hard to reproduce this bug but it happens from time to time.
Any idea how to deal with it?