I'd replace.

The damage is to the polystryene lining inside the shell of the helmet. The only way to assess this is with an X-ray of the hat.