Checking around the community, there’s a thread that discussed a similar topic, with quite a few interesting insights on how to setup a modular system for ships:
As well, I found a modular building system from Marketplace, that could easily be repurposed to construct ships, please give it a look: