Is it still happening? It happens when the properties don't get updated in the form. If this kind of error shows up, came out of the form tool, open the form again, check the properties and publish the form.
Hope this helps! If we were able to answer your query, kindly help the community by marking it as a solution. Thanks and Regards.