In this link, it is specified in one of the bullet points of
Constraints on document IDs
that it must be no longer than 1500 bytes and just below that we have
Maximum size for a document name
must be no longer than 6 KiB.
I did not find any distinction between document ID and document name in the documentation, I think document ID and document name are the same, but then the above quotes are conflicting.