Shinyapps.io fails to load when too many items in selectinput

When I add around ~ 150 items to selectInput (or pickerInput), shinyapps.io fails to display my dashboard. At the same time, it works perfectly locally.

The browser console with shinyapp.io shows following errors:

Failed to load resource: the server responded with a status of 500 ()
shiny-server-client.min.js:1 Thu Aug 05 2021 17:36:17 GMT-0500 (Peru Standard Time) [INF]: Disconnect detected; attempting reconnect
shiny-server-client.min.js:1 Thu Aug 05 2021 17:36:18 GMT-0500 (Peru Standard Time) [INF]: Connection restored
shiny-server-client.min.js:1 Thu Aug 05 2021 17:36:18 GMT-0500 (Peru Standard Time) [DBG]: Discard and continue from message 2
shiny-server-client.min.js:1 Thu Aug 05 2021 17:36:18 GMT-0500 (Peru Standard Time) [DBG]: 1 messages were dropped; resending

This does not seem to be a memory issue because increasing RAM does not make any effect. Is there any workaround for this?