I think, the code-based sandbox solutions are no longer going to work in SP 2019. It's one of the most promitent things removed in the latest sever version of the product:
After careful consideration, we've decided to also remove support for
code-based sandbox solutions in SharePoint Server 2019. Customers are
recommended to explore SharePoint add-ins as an ...