[Form] Throw an exception if the post_max_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
Is it really a invalid config when post size exceeds?