Hi Thomas,
We have a support team for SharePoint developers, I suggest you post the question there for help.
Currently, we support creating site collections via SharePoint admin center and PoweShell.
Create or delete a site collection
Use Windows Powershell cmdlets to administer site collections in SharePoint Online
You can also monitor this thread to see if someone with experiences about it will help you.
Thanks,
August Sun