fix: #3258972 Allow trimming a queue that exceeds its maximum size

Closes #3258972

Merge request reports

Loading