It was from the bites. It wasn’t a clean, medical amputation, so the remainder of the leg suffered for a while. He should be done with antibiotics and antifungal soon, too. Then he can have sand for a burrow again!
That will be good!
How much of the leg does he have left?