My guess is that the "is player grounded" test is not quite always working. But seems like the jump is also sometimes higher than other times, maybe I missed something though.