Could you try to follow this guide on debugging your shiny app, to narrow down your problem to the specific problematic part?
It's more likely that you get help if you provide a minimal reproducible example of your specific problem rather than the whole shiny app code.