Instead of making shortID based on _id, create a short poll id system where the server maintains a poll of active pool of short IDs
The short ID will be randomly generated and be compared with the poll of active IDs. If short ID exists in pool, regenerate short ID. Otherwise, assign the short ID to the poll and put the short ID in the pool
When poll is made inactive remove shortID from the poll