The element ID in database must be unique. There is only one way to export all data of linked models in one database. You need to create one federated model, link files, bind them (convert linked models into a groups), and then export. But you will sometimes encounter problems at binding process.
So I prefer the following method 1 model : 1 database.
If this helped you, please accept this as a solution.
Revit Certified Professional Architecture, Structure and MEP.