[Form] Make exception handling consistent with other components

Bug fix: no
Feature addition: no
Backwards compatibility break: no
Fixes the following tickets: #6544
Todo: -
License of the code: MIT