RabbitMQ 3.12 reached end-of-life 18 month ago. We are not going to investigate problems in that version.
There's a good chance your problem will just go away if you upgrade - you probably use classic queues v1,
while classic queues v2 are the only version available in RabbitMQ 4.x (the migration will happen automatically
if you upgrade, but you can also do it earlier). v2 is a major rewrite of the internals and significantly
improves performance in many situations.
If you use classic queue mirroring, you should migrate to quorum queues before you upgrade to 4.x.
Best,