[Form] Throw an exception if the max post size has been reached.

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #11729
| License       | MIT
| Doc PR        | n/a