When a very low acceptance ratio is set, the training of the queue size is hanging with a MemoryError raised by the get() method of the queue.