20 input fields? Wow :P
Anyway I tested it and you're right, it crashed for me too, so I created a bug:
Bug #57598: Xform edit crashes when trying to add more than 20 input fields
You can follow it on the public bug list when it becomes public (after they have confirmed it is a bug).