Hi @PRASHANT VYAS ,
Per my research, Code-Based Sandbox Solutions were deprecated in SharePoint Server 2019. As a workaround, we will recommend you to use add-ins as an alternative. Please refer to the document What's deprecated or removed from SharePoint Server 2019. Here is the discussion about the similar issue
https://sharepoint.stackexchange.com/questions/288787/sharepoint-2019-solutions-with-sandboxed-code-are-disabled
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.