Unsure on wording. This quacks like a form of uncompensated taking of a title. The property was purchased under set of terms of use.
Then the town took the some of that utility away. They ought to be required to compensate the owners for what they changed. Or have it grandfathered in.
The noise limits can be applied uniformly without invoking zoning. This way a quiet rental can be OK, and a loud neighbor who just loves to blast his music while cooking can be fined.
In fact most of the problems with badly run rentals can be handled using existing, non-zoning nuisance laws, and more aggressive policing of bad behavior in public in general. Whether a badly behaving partying guest or a local homeless population.
Heck, the owner of the building would thank you if the publicly drunk, publicly urinating guest.. spent 72h in jail rather than ruining the rental.