Multi-band dynamic-range-compression can attenuate any (bands of) frequencies which go above a volume-threshold.
There are many free multi-band compressor plugins for Windows which work in Audacity, (I don’t speak Mac).
A free plugin specifically for Audacity called Paul-L’s de-esser can be used as a multi-band limiter,
that may do the job for you, but it’s not simple to use …