Fixing level overload on a recording

There is a free de-clicker plugin for Audacity …

But the settings required for your wraparound example means it will take ~10x playback time to declick,
and it’s still not completely cured, and has (subtle) collateral-damage …

suggested de-clicker settings (slow processing will take -10x playback speed).png