Oh dear, poor froggie!
Got no idea tbh, but most likely a brain problem that has already been mentioned or maybe even an inner ear problem - balance/co-ordination out

Think you've done the best thing in quaratining it for the time being
Sorry that's not much help but keep us posted on how it's doing - it's interesting if nothing else!