Seems like the license that give you access to safe link and attachment have expired, if not try if you can get a trial version of E5 to add the link not to be re-written on the safe link settings.
Try using this link to access the safelink portal https://security.microsoft.com/safelinksv2 to see if you have access to it.