It works without errors on my side with the latest version.
It looks like a recent change FIX: correctly uses chat draft property by jjaffeux · Pull Request #54 · discourse/discourse-gifs · GitHub requires 3.2.0.beta4 ; so I would assume it’s a good idea to use the latest version here, as suggested Jammy.