And don't put Vaseline on an impeller magnet no matter what the internet 'says'. it's like the Crazy Russian that uses WD40 on car paint scrapes! Vaseline will just attract crud you don't want there. IF the impeller is rattling around, it may be worn and likely needs to be replaced or the pin is bent. As mentioned, if new, exchange it. If not, a new impeller may do the trick. You also may have crud in the magnet cavity so make sure it's good and clean.
Note: AC impeller magnets sit over a stainless steel pin. Sometimes the pin or the magnet hole wears so there is slop causing the impeller to rotate out of round (wobble) and make noise.
(I've had three (3) Aquaclear HOB filters for well over ten (10) years.)