I had an incident where a toe fell off following a rough debridement of my guinea pig who had pododermatitis. (slowly dried up and fell off)
Contact the vet. Note if the guinea pig is walking on the remaining stump. Note if the healing is clean. When an amputation is done, for example, often it is further up the appendage so the guinea pig does not walk on it and irritate the stump.