There are a few different ways to address the spam but none of them are perfect and all of them require intervention from your instance admin. The best course of action is to bring the spam to their attention by reporting the DMs. You may even want to contact your admin directly to ask them to take action.
Thanks for all you and the team do for Lemmy. We’ve updated and everything looks good.