I created a new view and added few fields on that and passing that view properties to apex for new record creation. If i am not wrong i have seen that 3000 is max length of the text input field on slack app's, and added 3000 as the max input for my fields on slack app view form. But when i tried to submit the form with max data in all the fields i am getting this error saying: System.HandledException: Component contains too much action data. Must reduce length of event definitions or properties. And then i tried submitting the form with 2500 char's in all fields and kept trying it by bringing down the max length and when i gave 250 as max length for the input parameters it worked. So is there any alternative to this issue to fix or is this a limitation.
Even though Slack allows up to 3000 characters per text input field, Salesforce has stricter limits when processing this data through its Lightning components framework.
Apex has a heap size limit of 6 MB for synchronous transactions and 12 MB for asynchronous ones. Exceeding this limit results in a System.HandledException
https://help.salesforce.com/s/articleView?id=000384468&type=1