It depends on the reason behind the broken attachment. Was the file/folder deleted, or was a folder was disconnected from Team Files by a user?
...
If the attachment was deleted on from the original storage, only restoring the file on the storage can recover it.
In case If the file/folder was deleted by mistake, open your storage site and restore it. After that, the file/folder will be available in Team Files again.
...
When a user disconnects a folder from Team Files, all attachments from that folder will appear as broken in your pages and issues.
...
In Jira, open the Project settings > Apps > Team Files > Connected folder logs.
In Confluence, open the Space settings > Team Files settings > Connected folder logs.
The logs show when a folder was changed and who did it.
...
Open the file manager from the sidebar
Click “Connect folder”folder.”
Open the place that contains the folder you need
Click the checkmark of the folder and click connect
...