Fixed #13711 -- Model check added to ensure that auto-generated field name is within limits of the database.

...ion.
I don't think nesting the test cases is the correct approach to avoid the errors you encountered.