Great question — answering as the UphillTech team:
Links are a way for Google to crawl the site and understand the site structure and pass the right signal. I don't see in your case that having too many links will cause any issues, even when these links are not to a specific HTML content, empty # used for JS this is fine and this is not something to worry about and will not make any difference.
Full answer by Amine Dahimene: https://webmasters.stackexchange.com/a/130494 (CC BY-SA 4.0).
Need it done for your business? UphillTech.