Sorry, it's very hard to help without more detailed information about your application and data. It would be helpful if you were able to post a small, reproducible example (reprex). Please refer to this post for more information about creating a reprex for Shiny apps.