I have tried to run the following command to compensate for the inventory reservation.
bin/magento inventory:reservation:create-compensations -r
But it got stuck, as in the below image.
It would be very helpful if anyone has a solution to this issue.