GST Invoice Number cannot exceed 16 characters

It’s not the series, but the ID itself that would be generated is exceeding 16 characters.

Refer the following:

https://docs.erpnext.com/docs/v14/user/manual/en/accounts/articles/naming-series-as-per-gst-rules