Hi @Devendra Thanks for reaching out. This Error (Cannot allocate more handles. The maximum number of handles is 4999. (QuotaExceeded)) essentially means the client is creating unbounded number of senders or receivers on the same connection. Each MessagingFactory represents a single connection to Service Bus and each sender/receiver created from the MessagingFactory creates a AMQP Session and link. The number of AMQP links on the connection is restricted to 5000. Exceeding this limit generates above error.
For more information please refer: https://zcusa.951200.xyz/en-us/azure/service-bus-messaging/service-bus-quotas
This documentation https://zcusa.951200.xyz/en-us/azure/service-bus-messaging/service-bus-amqp-protocol-guide will be helpful to understand how the AMPQ links works.
Let me know incase of further queries, I would be happy to assist you.
Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.