While I was working as a boat tech 2 years ago, I was asked to replace a Volvo-Penta tach with the factory part. Yeah... $$$. In this case the tach had water damage, so it hadda be changed. But still...
To the OP - if your tach isn't physically damaged and water hasn't entered it, it would be worth the half-hour to hour it would take to check the tach wiring - from the back of the tach through the remote panel, the remote panel's connector, through to the engine harness and the harness connector. The goal is to find and tighten any loose connection.
If I recall correctly, the multi-pin connectors in the engine-panel harness can sometimes have a contact problem. DO not disconnect anything while the engine is running unless you know exactly what you're doing. The multi-pin harness connectors can be opened and inspected if the engine is stopped, and preferably, the engine's 12v breaker is off.
Obviously you do any of this at your own risk. If you aren't comfortable with electricity and electronics, and you don't have a friend with real electrical experience who could help, then you're best off calling a pro.
I've found good working tachs at boat flea markets for as low as $10, but they're not always a good match for a specific requirement.