I'm so glad he's doing better!
In case it helps you down the road... My bunny had a few bouts similar to that and my vet recommended a change of diet: no carrots or other sweet treats, only 1/4 cup of pellets per day, and only two cups of fresh greens per day.
They also had me eliminate kale...