no such entity with cartid = 0 on checkout page Magento 2.4.0

I am getting very strange issue. I have created my custom Checkout extension which is working fine until Magento version 2.3.X but when I checked it in Magento 2.4.0 then I am getting no such entity with cartid = 0 error only for logged in customer for guest customer its working fine.