IF you’re full-on M365, you can create a Team for each customer you want in your portal. Each team automatically gets a Document Library, Chat, etc and you can add your custom list there. The security is done by default.
And remember that Teams is part of the Microsoft Graph, so the entire process could be automated.