@Stohrm Torpedo Boats or other cheap naval units are an interesting balance challenge for the exact reason you brought up, they’re liable to be built in swarms and used to obsolete the larger warships unless you add some special modifiers.
The coastal zones distinction was one that came to mind for me when I was drafting an outline for an expanded WWII unit roster. Mine wouldn’t be hard locked from entering ocean zones but would get a -1 combat penalty in those.
I actually considered Attack 2 / Defense 1 a more natural profile for a TB. That makes them more initiative dependent, and harder to use when combined with the penalty outside coastal zones.
You could throw in the Submarine’s inability to hit aircraft as an additional nerf to make planes an easy counter for torpedo boat spam. While a sub can hide, a torpedo boat doesn’t have that option.
Cruisers and battleships can handle TB spam much easier if they get two attack rolls per round, although that has strong balance implications - it makes them much better against planes as well, unless you can code the second attack roll to be incapable of hitting aircraft.
One final possibility is giving the cruiser and battleship pre-battle AA style shots against TBs to help thin out a swarm before it can attack.